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-agn-rs.c: In function 'rs_free_sta': /wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c:2425: warning: unused variable 'priv' This patch (against wireless-next-2.6 tree) fixes it. Signed-off-by: Rami Rosen <ramirose@xxxxxxxxx>
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 93944de..1ed4397 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c @@ -2422,11 +2422,15 @@ static void rs_free_sta(void *priv_r, struct ieee80211_sta *sta, void *priv_sta) { struct iwl_lq_sta *lq_sta = priv_sta; +#ifdef CONFIG_IWLWIFI_DEBUG struct iwl_priv *priv = priv_r; IWL_DEBUG_RATE("enter\n"); +#endif /* CONFIG_IWLWIFI_DEBUG */ kfree(lq_sta); +#ifdef CONFIG_IWLWIFI_DEBUG IWL_DEBUG_RATE("leave\n"); +#endif /* CONFIG_IWLWIFI_DEBUG */ }