diff options
author | Johan Hovold <johan@kernel.org> | 2019-04-25 18:05:38 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2019-04-30 10:25:04 +0200 |
commit | 5b67b10a5229c26931b3b5a7d07e1095ba58acb4 (patch) | |
tree | 3aba36278d3eed7bfda0fdb31836d8e04715d9ed /drivers/usb/serial | |
parent | a8d78d9f385642696723fcb9c52c2c2805fa4249 (diff) | |
download | linux-5b67b10a5229c26931b3b5a7d07e1095ba58acb4.tar.bz2 |
USB: serial: drop unnecessary goto
Drop an unnecessary goto from a write-urb completion error path.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 67cef3ef1e5f..1be8bea372a2 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c @@ -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); } |