]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: remove variable set but not used
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 13 Dec 2021 09:54:13 +0000 (17:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 14:56:03 +0000 (14:56 +0000)
commite98aa8fbf792a4ad93e156b32dd5bc809e867385
treef3ca803c034a709aabd5217c9857de02ca60efc6
parente18ec67bf99b85ec7240906921b126ef39413a39
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 <abaci@linux.alibaba.com>
Fixes: dafe8538246e ("mt76: debugfs: improve queue node readability")
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/mediatek/mt76/debugfs.c