diff options
author | Dan Carpenter <error27@gmail.com> | 2011-08-31 02:37:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:48:48 -0400 |
commit | 427977ab2e24bb76c733cc50be97d4262028f14a (patch) | |
tree | 64ec533e118b1ddb2f4d2d767224d75e4cd3581e /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 81a91d575512de74b1455d0ea213bde6f7b1e026 (diff) |
iwlwifi: fix double assign in iwl_start_tx_ba_trans_ready()
"vif" is assigned twice. We can remove the first one.
This silences a Smatch warning that "ctx" could be one step past the
end of the priv->contexts[] array.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 20dd1a5506e..72b9203c06e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1842,7 +1842,7 @@ void iwl_start_tx_ba_trans_ready(struct iwl_priv *priv, | |||
1842 | enum iwl_rxon_context_id ctx, | 1842 | enum iwl_rxon_context_id ctx, |
1843 | u8 sta_id, u8 tid) | 1843 | u8 sta_id, u8 tid) |
1844 | { | 1844 | { |
1845 | struct ieee80211_vif *vif = priv->contexts[ctx].vif; | 1845 | struct ieee80211_vif *vif; |
1846 | u8 *addr = priv->stations[sta_id].sta.sta.addr; | 1846 | u8 *addr = priv->stations[sta_id].sta.sta.addr; |
1847 | 1847 | ||
1848 | if (ctx == NUM_IWL_RXON_CTX) | 1848 | if (ctx == NUM_IWL_RXON_CTX) |