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

mt76: mt7921: avoid unnecessary spin_lock/spin_unlock in mt7921_mcu_tx_done_event



Do not grab the spinlock in mt7921_mcu_tx_done_event routine if not
necessary.

Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent df040215
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -534,9 +534,7 @@ mt7921_mcu_tx_done_event(struct mt7921_dev *dev, struct sk_buff *skb)
		mt7921_mcu_tx_rate_parse(mphy->mt76, &peer,
					 &msta->stats.tx_rate,
					 le16_to_cpu(event->tx_rate));

		spin_lock_bh(&dev->sta_poll_lock);
		break;
		return;
	}
	spin_unlock_bh(&dev->sta_poll_lock);
}