lkml.org 
[lkml]   [2007]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix drivers/char/cyclades.c warning with CONFIG_PCI=n
Hi,

when CONFIG_PCI is not set I get this warning :

...

drivers/char/cyclades.c: In function 'cy_init':
drivers/char/cyclades.c:5488: warning: label 'err_unr' defined but not used

...


Signed-off-by: Gabriel Craciunescu <nix.or.die@googlemail.com>

---

diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 9e0adfe..1fa0bda 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -5485,8 +5485,11 @@ static int __init cy_init(void)
#endif

return 0;
+
+#ifdef CONFIG_PCI
err_unr:
tty_unregister_driver(cy_serial_driver);
+#endif
err_frtty:
put_tty_driver(cy_serial_driver);
err:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-07-22 20:29    [W:0.019 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site