mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0e40899495
commit
55f314120e
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user