From: Dan Carpenter Date: Wed, 31 Aug 2011 06:37:42 +0000 (+0300) Subject: iwlwifi: fix double assign in iwl_start_tx_ba_trans_ready() X-Git-Tag: MMI-PSA29.97-13-9~18194^2~254^2~92 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=427977ab2e24bb76c733cc50be97d4262028f14a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reviewed-by: Johannes Berg Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 20dd1a5506ed..72b9203c06e2 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, enum iwl_rxon_context_id ctx, u8 sta_id, u8 tid) { - struct ieee80211_vif *vif = priv->contexts[ctx].vif; + struct ieee80211_vif *vif; u8 *addr = priv->stations[sta_id].sta.sta.addr; if (ctx == NUM_IWL_RXON_CTX)