summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/debugfs.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2020-05-30 23:48:56 +0200
committerFelix Fietkau <nbd@nbd.name>2020-07-21 19:01:14 +0200
commitbe49c5356f3923015ef7ace59c71be3013d18608 (patch)
tree8f968a196c8717bac4935e6efbb5e0029cf5bbd2 /drivers/net/wireless/mediatek/mt76/debugfs.c
parenta28bef561a5c144e7c6237626d748767fef7fc79 (diff)
downloadlinux-stable-be49c5356f3923015ef7ace59c71be3013d18608.tar.gz
linux-stable-be49c5356f3923015ef7ace59c71be3013d18608.tar.bz2
linux-stable-be49c5356f3923015ef7ace59c71be3013d18608.zip
mt76: usb: rely on mt76_for_each_q_rx
Rely on mt76_for_each_q_rx whenever possible in order to simply the code Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/debugfs.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/debugfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/debugfs.c b/drivers/net/wireless/mediatek/mt76/debugfs.c
index 3a5de1d1b121..9fda65db8cac 100644
--- a/drivers/net/wireless/mediatek/mt76/debugfs.c
+++ b/drivers/net/wireless/mediatek/mt76/debugfs.c
@@ -54,9 +54,6 @@ static int mt76_rx_queues_read(struct seq_file *s, void *data)
mt76_for_each_q_rx(dev, i) {
struct mt76_queue *q = &dev->q_rx[i];
- if (!q->ndesc)
- continue;
-
queued = mt76_is_usb(dev) ? q->ndesc - q->queued : q->queued;
seq_printf(s, "%d: queued=%d head=%d tail=%d\n",
i, queued, q->head, q->tail);