aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-04-20 22:24:49 +0000
committerLuca Coelho <[email protected]>2020-06-08 11:39:00 +0000
commitce475a8fb2229ffdb14ae011625097b3d3a8e39d (patch)
tree3a3cda0ead0481291794285c0fa190be687e427d /drivers/net/wireless/intel/iwlwifi/mvm/rs.c
parentiwlwifi: fix config variable name in comment (diff)
downloadkernel-ce475a8fb2229ffdb14ae011625097b3d3a8e39d.tar.gz
kernel-ce475a8fb2229ffdb14ae011625097b3d3a8e39d.zip
iwlwifi: mvm: remove redundant assignment to variable ret
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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/rs.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/rs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
index a7264b282d79..86b2ebb5d5fb 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
@@ -603,7 +603,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);