Browse Source

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>
Johan Hovold 8 năm trước cách đây
mục cha
commit
d395c9ab00
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      drivers/usb/serial/metro-usb.c

+ 0 - 1
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);