drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1126:5-8: Unneeded variable: "ret". Return " 0" on line 1154

From: kernel test robot
Date: Sat Oct 07 2023 - 19:39:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b9ddbb0cde2adcedda26045cc58f31316a492215
commit: 057381ddac0593c6e4ca8f58732830d8542b9c4e wifi: iwlwifi: pcie: avoid a warning in case prepare card failed
date: 7 weeks ago
config: x86_64-randconfig-101-20230927 (https://download.01.org/0day-ci/archive/20231008/202310080743.rx2s9fDg-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231008/202310080743.rx2s9fDg-lkp@xxxxxxxxx/reproduce)

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310080743.rx2s9fDg-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1126:5-8: Unneeded variable: "ret". Return " 0" on line 1154

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki