summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/tx.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2020-12-09 22:36:57 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-12-11 21:27:30 +0300
commit7f469b6dc484cd5b2ea61763607892626afc2b21 (patch)
treeeee2fa14c374fc96371c62df538793a9234036e1 /drivers/net/wireless/mediatek/mt76/tx.c
parent81daab1f8d57dccc7d5f26dd2f34847b6c4e6717 (diff)
downloadlinux-7f469b6dc484cd5b2ea61763607892626afc2b21.tar.xz
mt76: remove unused variable q
Kernel test robot reported warning: drivers/net/wireless/mediatek/mt76/tx.c: In function 'mt76_txq_schedule': >> drivers/net/wireless/mediatek/mt76/tx.c:499:21: warning: variable 'q' >> set but not used [-Wunused-but-set-variable] 499 | struct mt76_queue *q; | ^ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1607542617-4005-1-git-send-email-jrdr.linux@gmail.com
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/tx.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/tx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/tx.c b/drivers/net/wireless/mediatek/mt76/tx.c
index 1e20afb70fc1..25627e70bdad 100644
--- a/drivers/net/wireless/mediatek/mt76/tx.c
+++ b/drivers/net/wireless/mediatek/mt76/tx.c
@@ -504,14 +504,11 @@ mt76_txq_schedule_list(struct mt76_phy *phy, enum mt76_txq_id qid)
void mt76_txq_schedule(struct mt76_phy *phy, enum mt76_txq_id qid)
{
- struct mt76_queue *q;
int len;
if (qid >= 4)
return;
- q = phy->q_tx[qid];
-
rcu_read_lock();
do {