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 --- 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