ipw2200: fix a gcc compile warning
Hi,
If one compiles the ipw2200 module without having CONFIG_IPW2200_DEBUG set gcc will warn. This patch fixes the following warning and applies to 2.6.17-rc4-git6.
CC [M] drivers/net/wireless/ipw2200.odrivers/net/wireless/ipw2200.c:50: Warnung: `debug' defined but not used
Kind regards, Jens Nödler
Signed-off-by jens m. noedler <[email protected]>
---
net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 renamed from net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200 +4 -1
@@ -45,8 +45,11 @@ MODULE_VERSION(DRV_VERSION); MODULE_AUTHOR(DRV_COPYRIGHT); MODULE_LICENSE("GPL"); -static int cmdlog = 0; +#ifdef CONFIG_IPW2200_DEBUG static int debug = 0; +#endif + +static int cmdlog = 0; static int channel = 0; static int mode = 0;
Signature · 4 lines
jens m. noedler [email protected] pgp: 0x9f0920bb http://noedler.de
Quoted 4 lines · jens m. noedler
net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 renamed from net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200 +0
-0@@ -45,8 +45,11 @@ MODULE_VERSION(DRV_VERSION); MODULE_AUTHOR(DRV_COPYRIGHT);
net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 MODULE_VERSION(DRV_VERSION); · line 54
Quoted 10 lines
net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 renamed from net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200 +4
-1MODULE_LICENSE("GPL"); -static int cmdlog = 0; +#ifdef CONFIG_IPW2200_DEBUG static int debug = 0; +#endif + +static int cmdlog = 0; static int channel = 0; static int mode = 0;
The patch is already in wireless-2.6 GIT. Thank you anyway.
Thanks,
-yi