Commit c5b4ee64 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: serial: remove redundant write-urb kill

Since commit 1ce7b934 ("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: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bdce6612
...@@ -144,7 +144,6 @@ static void generic_cleanup(struct usb_serial_port *port) ...@@ -144,7 +144,6 @@ static void generic_cleanup(struct usb_serial_port *port)
if (serial->dev) { if (serial->dev) {
/* shutdown any bulk transfers that might be going on */ /* shutdown any bulk transfers that might be going on */
if (port->bulk_out_size) { if (port->bulk_out_size) {
usb_kill_urb(port->write_urb);
for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i)
usb_kill_urb(port->write_urbs[i]); usb_kill_urb(port->write_urbs[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment