From 7279e3f3c3e099a3cf0d901532b85be582d30c27 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Jan 2025 19:05:15 +0100 Subject: [PATCH] wifi: mt76: mt7925: fix unused-but-set warning Signed-off-by: Felix Fietkau --- mt7925/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mt7925/main.c b/mt7925/main.c index dba593d9..99b4879d 100644 --- a/mt7925/main.c +++ b/mt7925/main.c @@ -2121,14 +2121,12 @@ static void mt7925_unassign_vif_chanctx(struct ieee80211_hw *hw, struct mt792x_chanctx *mctx = (struct mt792x_chanctx *)ctx->drv_priv; struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; struct mt792x_dev *dev = mt792x_hw_dev(hw); - struct ieee80211_bss_conf *pri_link_conf; struct mt792x_bss_conf *mconf; mutex_lock(&dev->mt76.mutex); if (ieee80211_vif_is_mld(vif)) { mconf = mt792x_vif_to_link(mvif, link_conf->link_id); - pri_link_conf = mt792x_vif_to_bss_conf(vif, mvif->deflink_id); if (vif->type == NL80211_IFTYPE_STATION && mconf == &mvif->bss_conf)