tx: check for an empty txq list in mt76_txq_schedule_list

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-10-12 14:33:57 +02:00
parent 4e356ab590
commit 2f31d1e329
+1 -1
View File
@@ -373,7 +373,7 @@ mt76_txq_schedule_list(struct mt76_dev *dev, struct mt76_queue *hwq)
restart:
mtxq_last = list_last_entry(&hwq->swq, struct mt76_txq, list);
while (1) {
while (!list_empty(&hwq->swq)) {
bool empty = false;
int cur;