mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
0d020aae0a
commit
78c8fb3717
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue