mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 02:52:56 +00:00
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>
This commit is contained in:
parent
965bbef552
commit
d395c9ab00
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user