diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-05 13:43:10 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-09 14:32:36 -0400 |
commit | f875f5183b8f511161eddcbb4e9a1aada33d4aaf (patch) | |
tree | 012c0286589d42b382d6614e2754d696d18d9f4b /drivers | |
parent | 4c8d1913ac1baab64080c1030cb94e24cbd9a0f8 (diff) |
iwlwifi: fix compile warnings when compiling without debug
Fixes:
CC [M] drivers/net/wireless/iwlwifi/iwl-agn-rs.o
drivers/net/wireless/iwlwifi/iwl-agn-rs.c: In function ‘rs_get_rate’:
drivers/net/wireless/iwlwifi/iwl-agn-rs.c:2419: warning: unused variable ‘priv’
CC [M] drivers/net/wireless/iwlwifi/iwl-sta.o
drivers/net/wireless/iwlwifi/iwl-sta.c: In function ‘iwl_send_add_sta’:
drivers/net/wireless/iwlwifi/iwl-sta.c:197: warning: unused variable ‘sta_id’
drivers/net/wireless/iwlwifi/iwl-3945.c: In function ‘iwl3945_rx_reply_rx’:
drivers/net/wireless/iwlwifi/iwl-3945.c:601: warning: unused variable ‘rx_stats_noise_diff’
drivers/net/wireless/iwlwifi/iwl-3945.c:600: warning: unused variable ‘rx_stats_sig_avg’
drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function ‘rs_get_rate’:
drivers/net/wireless/iwlwifi/iwl-3945-rs.c:650: warning: unused variable ‘priv’
Reported-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-rs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c index 9e411dc0e5e1..80e9bbc7884a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c | |||
@@ -647,7 +647,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, | |||
647 | unsigned long flags; | 647 | unsigned long flags; |
648 | u16 rate_mask = sta ? sta->supp_rates[sband->band] : 0; | 648 | u16 rate_mask = sta ? sta->supp_rates[sband->band] : 0; |
649 | s8 max_rate_idx = -1; | 649 | s8 max_rate_idx = -1; |
650 | struct iwl_priv *priv = (struct iwl_priv *)priv_r; | 650 | struct iwl_priv *priv __maybe_unused = (struct iwl_priv *)priv_r; |
651 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 651 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
652 | 652 | ||
653 | IWL_DEBUG_RATE(priv, "enter\n"); | 653 | IWL_DEBUG_RATE(priv, "enter\n"); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index ae5efc376b91..15de649888d8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -597,8 +597,8 @@ static void iwl3945_rx_reply_rx(struct iwl_priv *priv, | |||
597 | struct iwl3945_rx_frame_stats *rx_stats = IWL_RX_STATS(pkt); | 597 | struct iwl3945_rx_frame_stats *rx_stats = IWL_RX_STATS(pkt); |
598 | struct iwl3945_rx_frame_hdr *rx_hdr = IWL_RX_HDR(pkt); | 598 | struct iwl3945_rx_frame_hdr *rx_hdr = IWL_RX_HDR(pkt); |
599 | struct iwl3945_rx_frame_end *rx_end = IWL_RX_END(pkt); | 599 | struct iwl3945_rx_frame_end *rx_end = IWL_RX_END(pkt); |
600 | u16 rx_stats_sig_avg = le16_to_cpu(rx_stats->sig_avg); | 600 | u16 rx_stats_sig_avg __maybe_unused = le16_to_cpu(rx_stats->sig_avg); |
601 | u16 rx_stats_noise_diff = le16_to_cpu(rx_stats->noise_diff); | 601 | u16 rx_stats_noise_diff __maybe_unused = le16_to_cpu(rx_stats->noise_diff); |
602 | u8 network_packet; | 602 | u8 network_packet; |
603 | 603 | ||
604 | rx_status.flag = 0; | 604 | rx_status.flag = 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 0c3c76803c5e..3c1cd417bbc5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -2409,7 +2409,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta, | |||
2409 | 2409 | ||
2410 | struct sk_buff *skb = txrc->skb; | 2410 | struct sk_buff *skb = txrc->skb; |
2411 | struct ieee80211_supported_band *sband = txrc->sband; | 2411 | struct ieee80211_supported_band *sband = txrc->sband; |
2412 | struct iwl_priv *priv = (struct iwl_priv *)priv_r; | 2412 | struct iwl_priv *priv __maybe_unused = (struct iwl_priv *)priv_r; |
2413 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 2413 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
2414 | struct iwl_lq_sta *lq_sta = priv_sta; | 2414 | struct iwl_lq_sta *lq_sta = priv_sta; |
2415 | int rate_idx; | 2415 | int rate_idx; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index 6876f7c59368..9b4d527bd3f8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -194,7 +194,7 @@ int iwl_send_add_sta(struct iwl_priv *priv, | |||
194 | .flags = flags, | 194 | .flags = flags, |
195 | .data = data, | 195 | .data = data, |
196 | }; | 196 | }; |
197 | u8 sta_id = sta->sta.sta_id; | 197 | u8 sta_id __maybe_unused = sta->sta.sta_id; |
198 | 198 | ||
199 | IWL_DEBUG_INFO(priv, "Adding sta %u (%pM) %ssynchronously\n", | 199 | IWL_DEBUG_INFO(priv, "Adding sta %u (%pM) %ssynchronously\n", |
200 | sta_id, sta->sta.addr, flags & CMD_ASYNC ? "a" : ""); | 200 | sta_id, sta->sta.addr, flags & CMD_ASYNC ? "a" : ""); |