mt76: only kick tx queue if frames were queued

Slightly reduces unnecessary device register accesses

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2021-12-04 12:44:50 +01:00
parent 047b9a9e78
commit fea36e0207
+1
View File
@@ -490,6 +490,7 @@ mt76_txq_send_burst(struct mt76_phy *phy, struct mt76_queue *q,
n_frames++;
} while (1);
if (n_frames)
dev->queue_ops->kick(dev, q);
return n_frames;