[U-Boot] [PATCH 1/1] x86: don't compare pointers to 0

Simon Glass sjg at chromium.org
Fri Nov 17 14:06:03 UTC 2017


On 10 November 2017 at 13:06, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> x86_vendor_name is defined as
>
> static const char *const x86_vendor_name[]
>
> So its elements should not be compared to 0.
>
> Remove superfluous paranthesis.
>
> Problem identified with Coccinelle.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  arch/x86/cpu/cpu.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list