Skip to content

Commit d9045b1

Browse files
YueHaibingnbd168
authored andcommitted
mt76: mt7915: remove set but not used variable 'msta'
Cc: [email protected], [email protected], [email protected], [email protected], [email protected] Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/mediatek/mt76/mt7915/mcu.c: In function 'mt7915_mcu_sta_txbf_type': drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:1805:21: warning: variable 'msta' set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent 194a150 commit d9045b1

File tree

1 file changed

+0
-3
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7915

1 file changed

+0
-3
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,15 +1801,12 @@ static u8
18011801
mt7915_mcu_sta_txbf_type(struct mt7915_phy *phy, struct ieee80211_vif *vif,
18021802
struct ieee80211_sta *sta)
18031803
{
1804-
struct mt7915_sta *msta;
18051804
u8 type = 0;
18061805

18071806
if (vif->type != NL80211_IFTYPE_STATION &&
18081807
vif->type != NL80211_IFTYPE_AP)
18091808
return 0;
18101809

1811-
msta = (struct mt7915_sta *)sta->drv_priv;
1812-
18131810
if (sta->he_cap.has_he) {
18141811
struct ieee80211_he_cap_elem *pe;
18151812
const struct ieee80211_he_cap_elem *ve;

0 commit comments

Comments
 (0)