aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-02-25 20:56:53 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-28 14:06:53 -0500
commitc3371d64d2b2fd029033976046cb4ca641485506 (patch)
treeab49d5d2a23f3a44b9c034d9d362809d96078501
parentd45dcef77019012fc6769e657fc2f1a5d681bbbb (diff)
iwlwifi: remove duplicate initialization
rate_mask is initialized again later so this can be removed. Btw, if rate_control_send_low(sta, priv_sta, txrc) returns false, that means that "sta" is non-NULL. That's why the second initialization of rate_mask is a little simpler than the first. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-3945-rs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-3945-rs.c b/drivers/net/wireless/iwlegacy/iwl-3945-rs.c
index 4fabc5439858..977bd2477c6a 100644
--- a/drivers/net/wireless/iwlegacy/iwl-3945-rs.c
+++ b/drivers/net/wireless/iwlegacy/iwl-3945-rs.c
@@ -644,7 +644,7 @@ static void iwl3945_rs_get_rate(void *priv_r, struct ieee80211_sta *sta,
644 u32 fail_count; 644 u32 fail_count;
645 s8 scale_action = 0; 645 s8 scale_action = 0;
646 unsigned long flags; 646 unsigned long flags;
647 u16 rate_mask = sta ? sta->supp_rates[sband->band] : 0; 647 u16 rate_mask;
648 s8 max_rate_idx = -1; 648 s8 max_rate_idx = -1;
649 struct iwl_priv *priv __maybe_unused = (struct iwl_priv *)priv_r; 649 struct iwl_priv *priv __maybe_unused = (struct iwl_priv *)priv_r;
650 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); 650 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);