]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
iwlwifi: RS small compile warnings without CONFIG_IWLWIFI_DEBUG
authorDenis V. Lunev <den@openvz.org>
Sat, 19 Jul 2008 01:04:18 +0000 (04:04 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Aug 2008 19:09:09 +0000 (15:09 -0400)
iwl-agn-rs.c: In function 'rs_clear':
iwl-agn-rs.c:2405: warning: unused variable 'priv

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c

index 0e8100e70620bbf834e3cf08925e2117f261de93..b498b58d81fad48c0b5ece38032954c87086ee42 100644 (file)
@@ -2393,6 +2393,7 @@ static void rs_free(void *priv_rate)
 
 static void rs_clear(void *priv_rate)
 {
+#ifdef CONFIG_IWLWIFI_DEBUG
        struct iwl_priv *priv = (struct iwl_priv *) priv_rate;
 
        IWL_DEBUG_RATE("enter\n");
@@ -2400,6 +2401,7 @@ static void rs_clear(void *priv_rate)
        /* TODO - add rate scale state reset */
 
        IWL_DEBUG_RATE("leave\n");
+#endif /* CONFIG_IWLWIFI_DEBUG */
 }
 
 static void rs_free_sta(void *priv_rate, void *priv_sta)