6 Oct 15:56
[PATCH 2/2] iwlwifi: fix compliation warning in iwl-scan.c when CONFIG_IWLWIFI_DEBUG is not set.
From: Rami Rosen <ramirose@...>
Subject: [PATCH 2/2] iwlwifi: fix compliation warning in iwl-scan.c when CONFIG_IWLWIFI_DEBUG is not set.
Newsgroups: gmane.linux.kernel.wireless.general
Date: 2008-10-06 13:59:27 GMT
Subject: [PATCH 2/2] iwlwifi: fix compliation warning in iwl-scan.c when CONFIG_IWLWIFI_DEBUG is not set.
Newsgroups: gmane.linux.kernel.wireless.general
Date: 2008-10-06 13:59:27 GMT
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@...>
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 */
(Continue reading)
RSS Feed