diff options
Diffstat (limited to 'drivers/usb/gadget/u_serial.c')
-rw-r--r-- | drivers/usb/gadget/u_serial.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c index fc6e709f45b1..adf8260c3a6a 100644 --- a/drivers/usb/gadget/u_serial.c +++ b/drivers/usb/gadget/u_serial.c | |||
@@ -1114,7 +1114,6 @@ int __init gserial_setup(struct usb_gadget *g, unsigned count) | |||
1114 | /* export the driver ... */ | 1114 | /* export the driver ... */ |
1115 | status = tty_register_driver(gs_tty_driver); | 1115 | status = tty_register_driver(gs_tty_driver); |
1116 | if (status) { | 1116 | if (status) { |
1117 | put_tty_driver(gs_tty_driver); | ||
1118 | pr_err("%s: cannot register, err %d\n", | 1117 | pr_err("%s: cannot register, err %d\n", |
1119 | __func__, status); | 1118 | __func__, status); |
1120 | goto fail; | 1119 | goto fail; |