intel: Simplify bool conversion
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 29 Sep 2021 06:56:26 +0000 (14:56 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 29 Oct 2021 16:42:33 +0000 (09:42 -0700)
commit3c6f3ae3bb2e5b2b67db324c100f29f7f56fad98
tree3349ee115567ac7bbb83a60ee89ea4af2c10a268
parent7444d706be31753f65052c7f6325fc8470cc1789
intel: Simplify bool conversion

Fix the following coccicheck warning:
./drivers/net/ethernet/intel/i40e/i40e_xsk.c:229:35-40: WARNING:
conversion to bool not needed here
./drivers/net/ethernet/intel/ice/ice_xsk.c:399:35-40: WARNING:
conversion to bool not needed here

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_xsk.c
drivers/net/ethernet/intel/ice/ice_xsk.c