Skip to content

Commit

Permalink
USB: Remove unused timeout from io_edgeport.c
Browse files Browse the repository at this point in the history
timeout variable is not used anywhere in int write_cmd_usb, remove it

Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Huzaifa Sidhpurwala authored and Greg Kroah-Hartman committed Mar 3, 2011
1 parent 2cd5bb2 commit e4738e2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/serial/io_edgeport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,6 @@ static int write_cmd_usb(struct edgeport_port *edge_port,
usb_get_serial_data(edge_port->port->serial);
int status = 0;
struct urb *urb;
int timeout;

usb_serial_debug_data(debug, &edge_port->port->dev,
__func__, length, buffer);
Expand Down Expand Up @@ -2376,8 +2375,6 @@ static int write_cmd_usb(struct edgeport_port *edge_port,
return status;
}

/* wait for command to finish */
timeout = COMMAND_TIMEOUT;
#if 0
wait_event(&edge_port->wait_command, !edge_port->commandPending);

Expand Down

0 comments on commit e4738e2

Please sign in to comment.