iwlwifi: fix build warning
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.
Signed-off-by Wu Fengguang <[email protected]>
---
drivers/net/wireless/iwlwifi/iwl-scan.c +2 -0
@@ -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
Johannes Berg
maintainerQuoted 2 lines · Wu Fengguang
iwl_escape_essid()is only used in debugging code for now. So define it only withCONFIG_IWL3945_DEBUGenabled.
that function has been removed recently from this file
johannes