diff options
author | Huzaifa Sidhpurwala <huzaifas@redhat.com> | 2011-03-02 01:29:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-02 19:52:30 -0500 |
commit | e4738e29bef8ed9bdd8a0606d0561557b4547649 (patch) | |
tree | ac7e36d66314a3e86b5e57bf1acf6a6e3e67653e | |
parent | 2cd5bb29a42f305c5749571c8cd693fbe69cc28d (diff) |
USB: Remove unused timeout from io_edgeport.c
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>
-rw-r--r-- | drivers/usb/serial/io_edgeport.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index 3b246d93cf22..76e3e502c23d 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -2343,7 +2343,6 @@ static int write_cmd_usb(struct edgeport_port *edge_port, | |||
2343 | usb_get_serial_data(edge_port->port->serial); | 2343 | usb_get_serial_data(edge_port->port->serial); |
2344 | int status = 0; | 2344 | int status = 0; |
2345 | struct urb *urb; | 2345 | struct urb *urb; |
2346 | int timeout; | ||
2347 | 2346 | ||
2348 | usb_serial_debug_data(debug, &edge_port->port->dev, | 2347 | usb_serial_debug_data(debug, &edge_port->port->dev, |
2349 | __func__, length, buffer); | 2348 | __func__, length, buffer); |
@@ -2376,8 +2375,6 @@ static int write_cmd_usb(struct edgeport_port *edge_port, | |||
2376 | return status; | 2375 | return status; |
2377 | } | 2376 | } |
2378 | 2377 | ||
2379 | /* wait for command to finish */ | ||
2380 | timeout = COMMAND_TIMEOUT; | ||
2381 | #if 0 | 2378 | #if 0 |
2382 | wait_event(&edge_port->wait_command, !edge_port->commandPending); | 2379 | wait_event(&edge_port->wait_command, !edge_port->commandPending); |
2383 | 2380 | ||