iwlwifi: mvm: remove setting of 'sta' parameter
Subsystems (3)
PATCH 1/1 iwlwifi: mvm: remove setting of 'sta' parameter
cppcheck reports
[drivers/net/wireless/intel/iwlwifi/mvm/rs.c:2686]: (warning) Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
The setting of the 'sta' parameter is not needed. In the if-check that sets it to NULL, mvm_sta is also set to NULL. Then the next statement checks if mvm_sta is NULL and does an early return. So remove setting sta.
Signed-off-by Tom Rix <[email protected]>
--- drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c +0 -1
@@ -2683,7 +2683,6 @@ static void rs_drv_get_rate(void *mvm_r, struct ieee80211_sta *sta,/* if vif isn't initialized mvm doesn't know about * this station, so don't do anything with the it */ - sta =NULL ; mvm_sta =NULL ; }
Signature · 1 line
2.27.0