diff --git a/mt76_connac.h b/mt76_connac.h index 9133b87f..63c1d1a6 100644 --- a/mt76_connac.h +++ b/mt76_connac.h @@ -104,9 +104,6 @@ mt76_connac_pm_ref(struct mt76_phy *phy, struct mt76_connac_pm *pm) { bool ret = false; - if (!pm->enable) - return true; - spin_lock_bh(&pm->wake.lock); if (test_bit(MT76_STATE_PM, &phy->state)) goto out; @@ -122,9 +119,6 @@ out: static inline void mt76_connac_pm_unref(struct mt76_connac_pm *pm) { - if (!pm->enable) - return; - spin_lock_bh(&pm->wake.lock); pm->wake.count--; pm->last_activity = jiffies;