From 93db8eede4a15cd81f3be20d6174ad46ca6262e0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 20 Dec 2015 10:26:01 +0100 Subject: [PATCH] mt76x2: remove msta->sleeping, it is unused Signed-off-by: Felix Fietkau --- mt76x2.h | 1 - mt76x2_main.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/mt76x2.h b/mt76x2.h index afc29031..07dfc45a 100644 --- a/mt76x2.h +++ b/mt76x2.h @@ -154,7 +154,6 @@ struct mt76x2_sta { struct mt76x2_tx_status status; int n_frames; - bool sleeping; }; struct mt76x2_reg_pair { diff --git a/mt76x2_main.c b/mt76x2_main.c index ec45c721..7cab1aec 100644 --- a/mt76x2_main.c +++ b/mt76x2_main.c @@ -275,13 +275,11 @@ mt76x2_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif, switch (cmd) { case STA_NOTIFY_SLEEP: - msta->sleeping = true; mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); mt76_stop_tx_queues(&dev->mt76, sta); break; case STA_NOTIFY_AWAKE: mt76_clear(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); - msta->sleeping = false; break; } }