USB: serial: drop unnecessary goto
authorJohan Hovold <johan@kernel.org>
Thu, 25 Apr 2019 16:05:38 +0000 (18:05 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 30 Apr 2019 08:25:04 +0000 (10:25 +0200)
Drop an unnecessary goto from a write-urb completion error path.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/generic.c

index 67cef3e..1be8bea 100644 (file)
@@ -463,10 +463,9 @@ void usb_serial_generic_write_bulk_callback(struct urb *urb)
        default:
                dev_err_console(port, "%s - nonzero urb status: %d\n",
                                                        __func__, status);
-               goto resubmit;
+               break;
        }
 
-resubmit:
        usb_serial_generic_write_start(port, GFP_ATOMIC);
        usb_serial_port_softint(port);
 }