Search Linux Wireless

[PATCH 2/2] iwlwifi: fix compliation warning in iwl-scan.c when CONFIG_IWLWIFI_DEBUG is not set.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When CONFIG_IWLWIFI_DEBUG is not set and CONFIG_IWLWIFI is set,
we get this compilation warning:
wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-scan.c:92: warning:
'iwl_escape_essid' defined but not used

This patch (against wireless-next-2.6 tree) fixes it.


Signed-off-by: Rami Rosen <ramirose@xxxxxxxxx>
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index bf855c3..3e5fd0e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -69,7 +69,7 @@ static int scan_tx_ant[3] = {
 };
 
 
-
+#ifdef CONFIG_IWLWIFI_DEBUG
 static int iwl_is_empty_essid(const char *essid, int essid_len)
 {
 	/* Single white space is for Linksys APs */
@@ -85,9 +85,10 @@ static int iwl_is_empty_essid(const char *essid, int essid_len)
 
 	return 1;
 }
+#endif /* CONFIG_IWLWIFI_DEBUG */
 
 
-
+#ifdef CONFIG_IWLWIFI_DEBUG
 static const char *iwl_escape_essid(const char *essid, u8 essid_len)
 {
 	static char escaped[IW_ESSID_MAX_SIZE * 2 + 1];
@@ -111,7 +112,7 @@ static const char *iwl_escape_essid(const char *essid, u8 essid_len)
 	*d = '\0';
 	return escaped;
 }
-
+#endif /* CONFIG_IWLWIFI_DEBUG */
 /**
  * iwl_scan_cancel - Cancel any currently executing HW scan
  *

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux