mt76: Fixed kernel test robot warning
PATCH 1/1 mt76: Fixed kernel test robot warning
Kernel test robot throws below warning ->
drivers/net/wireless/mediatek/mt76/tx.c: In function
'mt76_txq_schedule':
Quoted 2 lines
Quoted 2 lines
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;
| ^This patch will silence this warning.
--- drivers/net/wireless/mediatek/mt76/tx.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/wireless/mediatek/mt76/tx.c +0 -3
@@ -504,14 +504,11 @@ void mt76_tx_complete_skb(struct mt76_dev *dev, u16 wcid_idx, struct sk_buff *skvoid 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 {
Signature · 7 lines
1.9.1 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 6 lines · Souptick Joarder
Kernel test robot throws below warning ->
drivers/net/wireless/mediatek/mt76/tx.c: In function
'mt76_txq_schedule':Quoted 2 lines
Quoted 2 lines
drivers/net/wireless/mediatek/mt76/tx.c:499:21: warning: variable 'q' set but not used [-Wunused-but-set-variable]
Quoted 7 lines
499 | struct mt76_queue *q; | ^This patch will silence this warning.
Reported-by kernel test robot <[email protected]>Signed-off-by Souptick Joarder <[email protected]>
I would like to take this directly to wireless-drivers-next, ok?
I'll also change the title to:
mt76: remove unused variable q
Signature · 8 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 12 lines · Kalle Valo
Quoted 9 lines · Souptick Joarder
Kernel test robot throws below warning ->
drivers/net/wireless/mediatek/mt76/tx.c: In function
'mt76_txq_schedule':Quoted 2 lines
Quoted 2 lines
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; | ^
Quoted 6 lines
Quoted 4 lines
This patch will silence this warning.
Reported-by kernel test robot <[email protected]>Signed-off-by Souptick Joarder <[email protected]>I would like to take this directly to wireless-drivers-next, ok?
Ok.
Quoted 9 lines
I'll also change the title to:
mt76: remove unused variable q
--
https://patchwork.kernel.org/project/linux-wireless/list/https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: mt76: remove unused variable q
In reply to Souptick JoarderQuoted 11 lines · Souptick Joarder
Kernel test robot reported warning:
drivers/net/wireless/mediatek/mt76/tx.c: In function
'mt76_txq_schedule':Quoted 2 lines
Quoted 2 lines
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 <[email protected]>Signed-off-by Souptick Joarder <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
7f469b6dc484 mt76: remove unused variable q
Signature · 9 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: mt76: remove unused variable q
In reply to Souptick JoarderQuoted 11 lines · Souptick Joarder
Kernel test robot reported warning:
drivers/net/wireless/mediatek/mt76/tx.c: In function
'mt76_txq_schedule':Quoted 2 lines
Quoted 2 lines
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 <[email protected]>Signed-off-by Souptick Joarder <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
7f469b6dc484 mt76: remove unused variable q
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches