USB: ftdi_sio: remove obsolete check in unthrottle
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Feb 2010 19:19:10 +0000 (20:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:55:21 +0000 (14:55 -0800)
No need to check ASYNCB_INITIALIZED anymore as commit
e1108a63e10d344284011cccc06328b2cd3e5da3 (usb_serial: Use the shutdown()
operation) make sure that there is no longer any call to unthrottle
after device specific close (in which the read urb is killed).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c

index 9594e357a914afc8da1854f4420e33c51dd57332..6af0dfa5f5ac22e31a0fc9d70c8996ba33cbe53a 100644 (file)
@@ -2492,8 +2492,7 @@ void ftdi_unthrottle(struct tty_struct *tty)
        port->throttled = port->throttle_req = 0;
        spin_unlock_irqrestore(&port->lock, flags);
 
-       /* Resubmit urb if throttled and open. */
-       if (was_throttled && test_bit(ASYNCB_INITIALIZED, &port->port.flags))
+       if (was_throttled)
                ftdi_submit_read_urb(port, GFP_KERNEL);
 }