USB: serial: remove redundant write-urb kill
authorJohan Hovold <jhovold@gmail.com>
Wed, 25 Apr 2012 14:12:07 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 18:42:16 +0000 (11:42 -0700)
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>
drivers/usb/serial/generic.c

index 664deb63807c0d3ec3d7f6cf359a1cec4ce652de..f6c63d3044f508abb4302b4d5ede7065d70987d6 100644 (file)
@@ -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]);