RE: [PATCH -next] intel: Simplify bool conversion

From: Brelinski, Tony
Date: Mon Oct 25 2021 - 14:49:54 EST


> -----Original Message-----
> From: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx>
> Sent: Tuesday, September 28, 2021 11:56 PM
> To: kuba@xxxxxxxxxx
> Cc: davem@xxxxxxxxxxxxx; Brandeburg, Jesse
> <jesse.brandeburg@xxxxxxxxx>; Nguyen, Anthony L
> <anthony.l.nguyen@xxxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx;
> netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Yang Li
> <yang.lee@xxxxxxxxxxxxxxxxx>
> Subject: [PATCH -next] 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@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx>
> ---
> drivers/net/ethernet/intel/i40e/i40e_xsk.c | 2 +-
> drivers/net/ethernet/intel/ice/ice_xsk.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

Tested-by: Tony Brelinski <tony.brelinski@xxxxxxxxx>