* drivers/net/ethernet/pensando/ionic/ionic_txrx.c:608:3: warning: Variable 'done' is modified but its new value is never used.
@ 2020-08-06 14:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-06 14:37 UTC (permalink / raw)
To: Shannon Nelson; +Cc: kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fffe3ae0ee84e25d2befe2ae59bc32aa2b6bc77b
commit: f9c00e2cf258d215a1ed2a7b2ae5b91ac2f29582 ionic: clean tx queue of unfinished requests
date: 4 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 4 months ago
compiler: ia64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/pensando/ionic/ionic_txrx.c:608:3: warning: Variable 'done' is modified but its new value is never used. [unreadVariable]
done++;
^
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9c00e2cf258d215a1ed2a7b2ae5b91ac2f29582
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout f9c00e2cf258d215a1ed2a7b2ae5b91ac2f29582
vim +/done +608 drivers/net/ethernet/pensando/ionic/ionic_txrx.c
0f3154e6bcb3549 Shannon Nelson 2019-09-03 595
f9c00e2cf258d21 Shannon Nelson 2020-03-27 596 void ionic_tx_empty(struct ionic_queue *q)
f9c00e2cf258d21 Shannon Nelson 2020-03-27 597 {
f9c00e2cf258d21 Shannon Nelson 2020-03-27 598 struct ionic_desc_info *desc_info;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 599 int done = 0;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 600
f9c00e2cf258d21 Shannon Nelson 2020-03-27 601 /* walk the not completed tx entries, if any */
f9c00e2cf258d21 Shannon Nelson 2020-03-27 602 while (q->head != q->tail) {
f9c00e2cf258d21 Shannon Nelson 2020-03-27 603 desc_info = q->tail;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 604 q->tail = desc_info->next;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 605 ionic_tx_clean(q, desc_info, NULL, desc_info->cb_arg);
f9c00e2cf258d21 Shannon Nelson 2020-03-27 606 desc_info->cb = NULL;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 607 desc_info->cb_arg = NULL;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 @608 done++;
f9c00e2cf258d21 Shannon Nelson 2020-03-27 609 }
f9c00e2cf258d21 Shannon Nelson 2020-03-27 610 }
f9c00e2cf258d21 Shannon Nelson 2020-03-27 611
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-06 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 14:37 drivers/net/ethernet/pensando/ionic/ionic_txrx.c:608:3: warning: Variable 'done' is modified but its new value is never used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).