drivers/spi/spi.c:3078:38-40: WARNING !A || A && B is equivalent to !A || B

From: kernel test robot
Date: Tue Feb 28 2023 - 11:45:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e
commit: 76a85704cb917e3b25e00f02d5fd46e4e0a9077d spi: spi-mem: Allow controller supporting mem_ops without exec_op
date: 3 weeks ago
config: nios2-randconfig-c031-20230226 (https://download.01.org/0day-ci/archive/20230301/202303010051.HrHWSr9y-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 12.1.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/202303010051.HrHWSr9y-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/spi/spi.c:3078:38-40: WARNING !A || A && B is equivalent to !A || B

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