net: liquidio: simplify if expression
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 15 Nov 2022 17:34:39 +0000 (19:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2022 10:27:20 +0000 (10:27 +0000)
commit733d4bbf9514890eb53ebe75827bf1fb4fd25ebe
tree539d91b684e8c312753fe77ef9f732e86b860bcb
parent11b64a466c957e9e02c073b92a58639e96104181
net: liquidio: simplify if expression

Fix the warning reported by kbuild:

cocci warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/cavium/liquidio/lio_main.c:1797:54-56: WARNING !A || A && B is equivalent to !A || B
   drivers/net/ethernet/cavium/liquidio/lio_main.c:1827:54-56: WARNING !A || A && B is equivalent to !A || B

Fixes: 8979f428a4af ("net: liquidio: release resources when liquidio driver open failed")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c