From: Dave Young Date: Sun, 1 Feb 2009 10:54:54 +0000 (+0800) Subject: USB: usb-serial: fix the aircable_init failure path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78c8fb3717cdff35ad118e17ac7495d0cf21a61f;p=linux-beck.git 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 Acked-by: Naranjo Manuel Francisco Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index 537f953bd7f8..6d106e74265e 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; }