From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:36:25 +0000 (+0100) Subject: usb: ftdi_sio kill urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=794c944ecd468ddf8a571bd37ab7b21035965f91;p=linux-2.6-omap-h63xx.git usb: ftdi_sio kill urb cleanup - usb_kill_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index c186b4e73c7..89ce2775be1 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1388,8 +1388,7 @@ static void ftdi_close (struct usb_serial_port *port, struct file *filp) flush_scheduled_work(); /* shutdown our bulk read */ - if (port->read_urb) - usb_kill_urb(port->read_urb); + usb_kill_urb(port->read_urb); } /* ftdi_close */