* [PATCH] iwlwifi: fix build warning
@ 2008-11-23 11:18 Wu Fengguang
2008-11-23 11:47 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Wu Fengguang @ 2008-11-23 11:18 UTC (permalink / raw)
To: Zhu Yi; +Cc: linux-wireless
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 <wfg@linux.intel.com>
---
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index c89365e..412f5d2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iwlwifi: fix build warning
2008-11-23 11:18 [PATCH] iwlwifi: fix build warning Wu Fengguang
@ 2008-11-23 11:47 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2008-11-23 11:47 UTC (permalink / raw)
To: Wu Fengguang; +Cc: Zhu Yi, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
On Sun, 2008-11-23 at 19:18 +0800, Wu Fengguang wrote:
> 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-23 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-23 11:18 [PATCH] iwlwifi: fix build warning Wu Fengguang
2008-11-23 11:47 ` Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.