usb: visor kill urb cleanup
- usb_kill_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
95d4316654
commit
bcb54a5403
@@ -348,7 +348,6 @@ static void visor_close (struct usb_serial_port *port, struct file * filp)
|
|||||||
|
|
||||||
/* shutdown our urbs */
|
/* shutdown our urbs */
|
||||||
usb_kill_urb(port->read_urb);
|
usb_kill_urb(port->read_urb);
|
||||||
if (port->interrupt_in_urb)
|
|
||||||
usb_kill_urb(port->interrupt_in_urb);
|
usb_kill_urb(port->interrupt_in_urb);
|
||||||
|
|
||||||
/* Try to send shutdown message, if the device is gone, this will just fail. */
|
/* Try to send shutdown message, if the device is gone, this will just fail. */
|
||||||
|
Reference in New Issue
Block a user