Linux wireless drivers development
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Cc: Johannes Berg <johannes.berg@intel.com>,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH iwlwifi-next] wifi: iwlwifi: mld: remove unused variables in iwl_mld_remove_sta()
Date: Thu,  3 Dec 2026 08:34:32 -0500	[thread overview]
Message-ID: <20261203133432.3922118-1-sashal@kernel.org> (raw)

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


                 reply	other threads:[~2026-12-03 13:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203133432.3922118-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=johannes.berg@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=miriam.rachel.korenblit@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox