Skip to content

Commit 93d576f

Browse files
Yang Lidavem330
authored andcommitted
mt76: remove variable set but not used
The code that uses variable queued has been removed, and "mt76_is_usb(dev) ? q->ndesc - q->queued : q->queued" didn't do anything, so all they should be removed as well. Eliminate the following clang warnings: drivers/net/wireless/mediatek/mt76/debugfs.c:77:9: warning: variable ‘queued’ set but not used. Reported-by: Abaci Robot <[email protected]> Fixes: 2d8be76 ("mt76: debugfs: improve queue node readability") Signed-off-by: Yang Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fee32de commit 93d576f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/wireless/mediatek/mt76/debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ EXPORT_SYMBOL_GPL(mt76_queues_read);
7474
static int mt76_rx_queues_read(struct seq_file *s, void *data)
7575
{
7676
struct mt76_dev *dev = dev_get_drvdata(s->private);
77-
int i, queued;
77+
int i;
7878

7979
seq_puts(s, " queue | hw-queued | head | tail |\n");
8080
mt76_for_each_q_rx(dev, i) {
8181
struct mt76_queue *q = &dev->q_rx[i];
8282

83-
queued = mt76_is_usb(dev) ? q->ndesc - q->queued : q->queued;
8483
seq_printf(s, " %9d | %9d | %9d | %9d |\n",
8584
i, q->queued, q->head, q->tail);
8685
}

0 commit comments

Comments
 (0)