Commit 1d4f5c68 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau
Browse files

mt76: mt7921: get rid of useless MT76_STATE_PM in mt7921_mac_work



Remove useless MT76_STATE_PM check in mt7921_mac_work since
mt7921_mutex_acquire will wake up the device if necessary

Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent efe9ec5c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1493,9 +1493,6 @@ void mt7921_mac_work(struct work_struct *work)
					       mac_work.work);
	phy = mphy->priv;

	if (test_bit(MT76_STATE_PM, &mphy->state))
		goto out;

	mt7921_mutex_acquire(phy->dev);

	mt76_update_survey(mphy->dev);
@@ -1510,8 +1507,6 @@ void mt7921_mac_work(struct work_struct *work)
	}

	mt7921_mutex_release(phy->dev);

out:
	ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work,
				     MT7921_WATCHDOG_TIME);
}