mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Cyclades: Avoid label defined but not used warning
CC drivers/char/cyclades.o drivers/char/cyclades.c: In function 'cy_init': drivers/char/cyclades.c:5488: warning: label 'err_unr' defined but not used Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
65f76a82ec
commit
d941ea7d49
1 changed files with 4 additions and 4 deletions
|
@ -5362,13 +5362,13 @@ static int __init cy_init(void)
|
|||
#ifdef CONFIG_PCI
|
||||
/* look for pci boards */
|
||||
retval = pci_register_driver(&cy_pci_driver);
|
||||
if (retval && !nboards)
|
||||
goto err_unr;
|
||||
if (retval && !nboards) {
|
||||
tty_unregister_driver(cy_serial_driver);
|
||||
goto err_frtty;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
err_unr:
|
||||
tty_unregister_driver(cy_serial_driver);
|
||||
err_frtty:
|
||||
put_tty_driver(cy_serial_driver);
|
||||
err:
|
||||
|
|
Loading…
Reference in a new issue