summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/generic.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-04-25 16:12:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-25 11:42:16 -0700
commitc5b4ee64ae4adc14ba803f5efebf212e06d022c1 (patch)
treecf99bd3e85fdbd8dc517fa6a21f7d6cc901261eb /drivers/usb/serial/generic.c
parentbdce6612a0562e64acec92bbf6dce567609f5867 (diff)
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 <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/generic.c')
-rw-r--r--drivers/usb/serial/generic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index 664deb63807c..f6c63d3044f5 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]);