From: Johan Hovold Date: Wed, 25 Apr 2012 14:12:07 +0000 (+0200) Subject: USB: serial: remove redundant write-urb kill X-Git-Tag: upstream/snapshot3+hdmi~7443^2~313 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5b4ee64ae4adc14ba803f5efebf212e06d022c1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git USB: serial: remove redundant write-urb kill Since commit 1ce7b9349fad ("USB: serial: reuse generic write urb and bulk-out buffer") the port write_urb is simply a pointer to the first member of write_urbs so there's no need to kill it twice. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 664deb6..f6c63d3 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c @@ -144,7 +144,6 @@ static void generic_cleanup(struct usb_serial_port *port) if (serial->dev) { /* shutdown any bulk transfers that might be going on */ if (port->bulk_out_size) { - usb_kill_urb(port->write_urb); for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) usb_kill_urb(port->write_urbs[i]);