aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-10-18 06:06:23 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-18 17:37:26 -0400
commitd941ea7d496db914205c3872942fd1ff0e7dccef (patch)
treeb35ec0bf04c09950c756eaf194ef75cd5abf9c04 /drivers/char
parent65f76a82ec7a0374fad85211535330e203740475 (diff)
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/cyclades.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 0634dd1c773a..d15234c5965e 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -5362,13 +5362,13 @@ static int __init cy_init(void)
5362#ifdef CONFIG_PCI 5362#ifdef CONFIG_PCI
5363 /* look for pci boards */ 5363 /* look for pci boards */
5364 retval = pci_register_driver(&cy_pci_driver); 5364 retval = pci_register_driver(&cy_pci_driver);
5365 if (retval && !nboards) 5365 if (retval && !nboards) {
5366 goto err_unr; 5366 tty_unregister_driver(cy_serial_driver);
5367 goto err_frtty;
5368 }
5367#endif 5369#endif
5368 5370
5369 return 0; 5371 return 0;
5370err_unr:
5371 tty_unregister_driver(cy_serial_driver);
5372err_frtty: 5372err_frtty:
5373 put_tty_driver(cy_serial_driver); 5373 put_tty_driver(cy_serial_driver);
5374err: 5374err: