From 2f31d1e329dc43074a05782624195860c45b099a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Oct 2015 14:33:57 +0200 Subject: [PATCH] tx: check for an empty txq list in mt76_txq_schedule_list Signed-off-by: Felix Fietkau --- tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx.c b/tx.c index 29ea0e52..c4909faa 100644 --- a/tx.c +++ b/tx.c @@ -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;