Skip to content

Commit

Permalink
USB: serial: metro-usb: drop redundant URB unlink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold committed Feb 8, 2017
1 parent 965bbef commit d395c9a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d395c9a

Please sign in to comment.