iwlwifi: mvm: remove redundant assignment to variable ret
PATCH 1/1 iwlwifi: mvm: remove redundant assignment to variable ret
From: Colin Ian King <[email protected]>
The variable ret is being assigned with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c +1 -1
@@ -604,7 +604,7 @@ static int rs_tl_turn_on_agg_for_tid(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_data, u8 tid, struct ieee80211_sta *sta) { - int ret = -EAGAIN; + int ret;IWL_DEBUG_HT (mvm,"Starting Tx agg: STA: %pM tid: %d\n" , sta->addr, tid);
Signature · 1 line
2.25.1