summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDave Young <hidave.darkstar@gmail.com>2009-02-01 18:54:54 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-02-09 11:19:48 -0800
commit78c8fb3717cdff35ad118e17ac7495d0cf21a61f (patch)
tree1decf8ad7d909766941581342a5ed84809f48183 /drivers/usb
parent0d020aae0a154cffce680a7775c74788fa0bea92 (diff)
downloadop-kernel-dev-78c8fb3717cdff35ad118e17ac7495d0cf21a61f.zip
op-kernel-dev-78c8fb3717cdff35ad118e17ac7495d0cf21a61f.tar.gz
USB: usb-serial: fix the aircable_init failure path
The failure path of aircable_init is wrong, fix the order of (goto) labels. Signed-off-by: Dave Young <hidave.darkstar@gmail.com> Acked-by: Naranjo Manuel Francisco <naranjo.manuel@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/aircable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c
index 537f953..6d106e7 100644
--- a/drivers/usb/serial/aircable.c
+++ b/drivers/usb/serial/aircable.c
@@ -621,9 +621,9 @@ static int __init aircable_init(void)
goto failed_usb_register;
return 0;
-failed_serial_register:
- usb_serial_deregister(&aircable_device);
failed_usb_register:
+ usb_serial_deregister(&aircable_device);
+failed_serial_register:
return retval;
}
OpenPOWER on IntegriCloud