summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/visor.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-08 15:36:55 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 14:23:35 -0800
commitbcb54a54033ff9359cf64e4283e4f4b92bf9132f (patch)
tree55005be86074155d6bdc96f372ff1cf217afebcb /drivers/usb/serial/visor.c
parent95d4316654a7e09778ebf81e03cab7040ecca1b0 (diff)
downloadop-kernel-dev-bcb54a54033ff9359cf64e4283e4f4b92bf9132f.zip
op-kernel-dev-bcb54a54033ff9359cf64e4283e4f4b92bf9132f.tar.gz
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>
Diffstat (limited to 'drivers/usb/serial/visor.c')
-rw-r--r--drivers/usb/serial/visor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index befe2e1..eef5eaa 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -348,8 +348,7 @@ static void visor_close (struct usb_serial_port *port, struct file * filp)
/* shutdown our urbs */
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. */
transfer_buffer = kmalloc (0x12, GFP_KERNEL);
OpenPOWER on IntegriCloud