Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH iwlwifi-next] wifi: iwlwifi: mld: remove unused variables in iwl_mld_remove_sta()
@ 2026-12-03 13:34 Sasha Levin
  0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2026-12-03 13:34 UTC (permalink / raw)
  To: Miri Korenblit; +Cc: Johannes Berg, linux-wireless, linux-kernel

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")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
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(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mld/sta.c b/drivers/net/wireless/intel/iwlwifi/mld/sta.c
index 745f26dfcb545..167a96f80e98f 100644
--- a/drivers/net/wireless/intel/iwlwifi/mld/sta.c
+++ b/drivers/net/wireless/intel/iwlwifi/mld/sta.c
@@ -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
-- 
2.53.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-03 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 13:34 [PATCH iwlwifi-next] wifi: iwlwifi: mld: remove unused variables in iwl_mld_remove_sta() Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox