]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/maple: Fix comparing pointer to 0
authorChen Zhou <chenzhou10@huawei.com>
Tue, 21 Jan 2020 01:31:53 +0000 (09:31 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 25 Jan 2020 13:11:35 +0000 (00:11 +1100)
commit53530eac1fcbeea23b99e2d5f75e51442b369898
tree604e33ae1077f90d071b0097bffb058003972d3c
parent6e68bddfec8cc0948f2d639977a575e6b4c3257a
powerpc/maple: Fix comparing pointer to 0

Fixes coccicheck warning:
  arch/powerpc/platforms/maple/setup.c:232:15-16:
WARNING comparing pointer to 0

Compare pointer-typed values to NULL rather than 0.

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200121013153.9937-1-chenzhou10@huawei.com
arch/powerpc/platforms/maple/setup.c