From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:36:25 +0000 (+0100) Subject: usb: ftdi_sio kill urb cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=794c944ecd468ddf8a571bd37ab7b21035965f91;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 c186b4e73c72..89ce2775be15 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 */