Skip to contentSkip to conversation

wifi: iwlwifi: mld: remove unused variables in iwl_mld_remove_sta()

PATCH New Sasha Levin 1 participant 1 message Dec 3 Intel wireless wifi link (iwlwifi)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: iwlwifi: mld: remove unused variables in iwl_mld_remove_sta()

Commit ebcebe390b9c ("wifi: iwlwifi: mld: request per-STA GTKs for the AP") removed the only user of 'vif' in iwl_mld_remove_sta(), and 'vif' was the only user of 'mld_sta'. With CONFIG_WERROR the build fails:

drivers/net/wireless/intel/iwlwifi/mld/sta.c:918:24: error: unused
variable 'vif' [-Werror,-Wunused-variable]

Remove both variables.

Fixes ebcebe390b9c ("wifi: iwlwifi: mld: request per-STA GTKs for the AP")

---
Based on iwlwifi-next (0cc6bdc71e9d). Built mld/sta.o on x86_64 allmodconfig with clang 21: it fails before this patch and builds after.

 drivers/net/wireless/intel/iwlwifi/mld/sta.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/intel/iwlwifi/mld/sta.c +0 -2
index 745f26dfcb545..167a96f80e98f 100644
@@ -914,8 +914,6 @@ void iwl_mld_wait_sta_txqs_empty(struct iwl_mld *mld, struct ieee80211_sta *sta)
 
 void iwl_mld_remove_sta(struct iwl_mld *mld, struct ieee80211_sta *sta)
 {
-	struct iwl_mld_sta *mld_sta = iwl_mld_sta_from_mac80211(sta);
-	struct ieee80211_vif *vif = mld_sta->vif;
 	struct ieee80211_link_sta *link_sta;
 	u8 link_id;
 

base-commit: 0cc6bdc71e9d855b90a002280939dfc264a65543

Signature · 1 line
2.53.0