USB: Remove unused timeout from io_edgeport.c
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>
Wed, 2 Mar 2011 06:29:26 +0000 (11:59 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Mar 2011 00:52:30 +0000 (19:52 -0500)
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>
drivers/usb/serial/io_edgeport.c

index 3b246d93cf224fa56a01ca94fcb4a40dbd2735b5..76e3e502c23d645f92fbd68cea1ef4897dacfeaa 100644 (file)
@@ -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);
@@ -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);