]> git.baikalelectronics.ru Git - uboot.git/commit
x86: don't compare pointers to 0
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 20 Nov 2017 18:45:56 +0000 (19:45 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Nov 2017 05:50:17 +0000 (13:50 +0800)
commita23b808415ab3e3eaf78923f7e6986d5631efac3
tree3bfb7a4df0858128984b4a1feaaef2479c0f9b8b
parente37dfa3bf0c217f260bc12b7dfa7c2d0d70e4bec
x86: don't compare pointers to 0

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@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/cpu.c