Skip to contentSkip to conversation

iwlwifi: fix build warning

PATCH In review Wu Fengguang 2 participants 2 messages Nov 23, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwlwifi: fix build warning

iwl_escape_essid() is only used in debugging code for now. So define it only with CONFIG_IWL3945_DEBUG enabled.

---

drivers/net/wireless/iwlwifi/iwl-scan.c +2 -0
index c89365e..412f5d2 100644
@@ -70,6 +70,7 @@ static int scan_tx_ant[3] = {
 
 
 
+#ifdef CONFIG_IWL3945_DEBUG
 static int iwl_is_empty_essid(const char *essid, int essid_len)
 {
 	/* Single white space is for Linksys APs */
@@ -111,6 +112,7 @@ static const char *iwl_escape_essid(const char *essid, u8 essid_len)
 	*d = '\0';
 	return escaped;
 }
+#endif
 
 /**
  * iwl_scan_cancel - Cancel any currently executing HW scan
maintainer
#1 lore raw
Quoted 2 lines · Wu Fengguang

iwl_escape_essid() is only used in debugging code for now. So define it only with CONFIG_IWL3945_DEBUG enabled.

that function has been removed recently from this file

johannes