diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-02-25 14:19:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:55:21 -0500 |
commit | a880830e48e6fb7694de76ebb4a6c6bb0800f758 (patch) | |
tree | 47bd114b4b5a06f91373051ec91cf318a62070e0 /drivers/usb/serial/ftdi_sio.c | |
parent | 04b922c41710d770460c4663f69eabb0bf670be9 (diff) |
USB: ftdi_sio: remove obsolete check in unthrottle
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>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 9594e357a914..6af0dfa5f5ac 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -2492,8 +2492,7 @@ void ftdi_unthrottle(struct tty_struct *tty) | |||
2492 | port->throttled = port->throttle_req = 0; | 2492 | port->throttled = port->throttle_req = 0; |
2493 | spin_unlock_irqrestore(&port->lock, flags); | 2493 | spin_unlock_irqrestore(&port->lock, flags); |
2494 | 2494 | ||
2495 | /* Resubmit urb if throttled and open. */ | 2495 | if (was_throttled) |
2496 | if (was_throttled && test_bit(ASYNCB_INITIALIZED, &port->port.flags)) | ||
2497 | ftdi_submit_read_urb(port, GFP_KERNEL); | 2496 | ftdi_submit_read_urb(port, GFP_KERNEL); |
2498 | } | 2497 | } |
2499 | 2498 | ||