diff mbox series

[3/5] USB: serial: generic: drop unnecessary goto

Message ID 20190425160540.10036-4-johan@kernel.org (mailing list archive)
State Mainlined
Commit 5b67b10a5229c26931b3b5a7d07e1095ba58acb4
Headers show
Series USB: fix tty unthrottle races | expand

Commit Message

Johan Hovold April 25, 2019, 4:05 p.m. UTC
Drop an unnecessary goto from a write-urb completion error path.

Signed-off-by: Johan Hovold <johan@kernel.org>
---
 drivers/usb/serial/generic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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);
 }