Re: [PATCH] bpf, x32: remove unneeded conversion to bool
From: H. Peter Anvin
Date: Wed Apr 22 2020 - 14:45:28 EST
On 2020-04-20 05:37, Jason Yan wrote:
> The '==' expression itself is bool, no need to convert it to bool again.
> This fixes the following coccicheck warning:
>
> arch/x86/net/bpf_jit_comp32.c:1478:50-55: WARNING: conversion to bool
> not needed here
> arch/x86/net/bpf_jit_comp32.c:1479:50-55: WARNING: conversion to bool
> not needed here
>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>
> ---
> arch/x86/net/bpf_jit_comp32.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
x32 is not i386.
-hpa