drivers/powercap/idle_inject.c:130:40-42: WARNING !A || A && B is equivalent to !A || B

From: kernel test robot
Date: Fri Mar 10 2023 - 02:25:13 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 44889ba56cbb3d51154660ccd15818bc77276696
commit: acbc661032b8aa0e8359ac77074769ade34a176c powercap: idle_inject: Add update callback
date: 5 weeks ago
config: i386-randconfig-c001 (https://download.01.org/0day-ci/archive/20230310/202303101512.mR87EHWR-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202303101512.mR87EHWR-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/powercap/idle_inject.c:130:40-42: WARNING !A || A && B is equivalent to !A || B

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