From: Johan Hovold Date: Wed, 8 Feb 2017 12:49:17 +0000 (+0100) Subject: USB: serial: metro-usb: drop redundant URB unlink X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d395c9ab00901cdd804c36857e9079dd794c3b1c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Johan Hovold --- diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 4f7cd30b5424..b0c7746438df 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);