Skip to content

Commit

Permalink
mt76: remove unused variable q
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Souptick Joarder authored and nbd168 committed Jan 4, 2021
1 parent 64bd6f8 commit c202ace
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tx.c
Expand Up @@ -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 {
Expand Down

0 comments on commit c202ace

Please sign in to comment.