From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:36:38 +0000 (+0100) Subject: usb: kobil_sct kill urb cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5505c2261eb5e7a6ff851afbe7f77d54d960e83b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git usb: kobil_sct kill urb cleanup - usb_kill_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 8dd2afa2fca8..237289920f03 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c @@ -353,8 +353,7 @@ static void kobil_close (struct usb_serial_port *port, struct file *filp) usb_free_urb( port->write_urb ); port->write_urb = NULL; } - if (port->interrupt_in_urb) - usb_kill_urb(port->interrupt_in_urb); + usb_kill_urb(port->interrupt_in_urb); }