Commit d941ea7d authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Acked-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 65f76a82
...@@ -5362,13 +5362,13 @@ static int __init cy_init(void) ...@@ -5362,13 +5362,13 @@ static int __init cy_init(void)
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
/* look for pci boards */ /* look for pci boards */
retval = pci_register_driver(&cy_pci_driver); retval = pci_register_driver(&cy_pci_driver);
if (retval && !nboards) if (retval && !nboards) {
goto err_unr; tty_unregister_driver(cy_serial_driver);
goto err_frtty;
}
#endif #endif
return 0; return 0;
err_unr:
tty_unregister_driver(cy_serial_driver);
err_frtty: err_frtty:
put_tty_driver(cy_serial_driver); put_tty_driver(cy_serial_driver);
err: err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment