diff options
author | Johan Hovold <johan@kernel.org> | 2017-02-08 13:49:17 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-02-08 19:27:52 +0100 |
commit | d395c9ab00901cdd804c36857e9079dd794c3b1c (patch) | |
tree | a06ade4507a3699e80c24f838220c138f2c5be12 /drivers/usb/serial/metro-usb.c | |
parent | 965bbef552cdbf22ab7fb83e7f92b2f251d56f70 (diff) | |
download | op-kernel-dev-d395c9ab00901cdd804c36857e9079dd794c3b1c.zip op-kernel-dev-d395c9ab00901cdd804c36857e9079dd794c3b1c.tar.gz |
USB: serial: metro-usb: drop redundant URB unlink
Drop redundant URB unlink as there's no need to unlink an URB which is
about to be killed synchronously.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/metro-usb.c')
-rw-r--r-- | drivers/usb/serial/metro-usb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 4f7cd30..b0c7746 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c @@ -165,7 +165,6 @@ static void metrousb_cleanup(struct usb_serial_port *port) { dev_dbg(&port->dev, "%s\n", __func__); - usb_unlink_urb(port->interrupt_in_urb); usb_kill_urb(port->interrupt_in_urb); metrousb_send_unidirectional_cmd(UNI_CMD_CLOSE, port); |