drivers/net/ethernet/amd/pds_core/core.c:156:2-7: WARNING: NULL check before some freeing functions is not needed.

From: kernel test robot
Date: Sun Oct 15 2023 - 00:49:12 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9a3dad63edbe9a2ab2be1e7361a2133f519f855b
commit: ddbcb22055d136f58841c73ca2226dab79eb6101 pds_core: Kconfig and pds_core.rst
date: 6 months ago
config: x86_64-randconfig-103-20231015 (https://download.01.org/0day-ci/archive/20231015/202310151223.hg8OrOsd-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231015/202310151223.hg8OrOsd-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/202310151223.hg8OrOsd-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/amd/pds_core/core.c:156:2-7: WARNING: NULL check before some freeing functions is not needed.
drivers/net/ethernet/amd/pds_core/core.c:159:2-7: WARNING: NULL check before some freeing functions is not needed.

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