* [linux-next:master 11866/12403] drivers/net/ethernet/broadcom/bnxt/bnxt.c:5662:5-7: Unneeded variable: "rc". Return " 0" on line 5677
@ 2024-01-04 11:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-04 11:55 UTC (permalink / raw)
To: Michael Chan
Cc: oe-kbuild-all, Linux Memory Management List, Vasundhara Volam,
Andy Gospodarek, Pavan Chebbi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d0b3c8aa5e37775cd7c3ac07b256218df0fd6678
commit: 96c9bedc755ed1fa6e35d37328ddbcb439c93c4c [11866/12403] bnxt_en: Refactor L2 filter alloc/free firmware commands.
config: arm64-randconfig-r053-20240104 (https://download.01.org/0day-ci/archive/20240104/202401041942.qrB1amZM-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401041942.qrB1amZM-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/broadcom/bnxt/bnxt.c:5662:5-7: Unneeded variable: "rc". Return " 0" on line 5677
vim +5662 drivers/net/ethernet/broadcom/bnxt/bnxt.c
5658
5659 static int bnxt_hwrm_clear_vnic_filter(struct bnxt *bp)
5660 {
5661 u16 i, j, num_of_vnics = 1; /* only vnic 0 supported */
> 5662 int rc = 0;
5663
5664 /* Any associated ntuple filters will also be cleared by firmware. */
5665 for (i = 0; i < num_of_vnics; i++) {
5666 struct bnxt_vnic_info *vnic = &bp->vnic_info[i];
5667
5668 for (j = 0; j < vnic->uc_filter_count; j++) {
5669 struct bnxt_l2_filter *fltr = vnic->l2_filters[j];
5670
5671 bnxt_hwrm_l2_filter_free(bp, fltr);
5672 bnxt_del_l2_filter(bp, fltr);
5673 }
5674 vnic->uc_filter_count = 0;
5675 }
5676
> 5677 return rc;
5678 }
5679
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-04 11:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-04 11:55 [linux-next:master 11866/12403] drivers/net/ethernet/broadcom/bnxt/bnxt.c:5662:5-7: Unneeded variable: "rc". Return " 0" on line 5677 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