powerpc: Use NULL instead of 0 for null pointers
authorBenjamin Gray <bgray@linux.ibm.com>
Wed, 11 Oct 2023 05:37:03 +0000 (16:37 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Oct 2023 06:12:47 +0000 (17:12 +1100)
commitddfb7d9db843fd4fbdff81fb8a8743f865c3dd96
treed040abb002e404d1c6b3f6290f48b6735c8697f8
parent340a60e3725b9a229eaf03a9b3f8538f22f6ac16
powerpc: Use NULL instead of 0 for null pointers

Sparse reports several uses of 0 for pointer arguments and comparisons.
Replace with NULL to better convey the intent. Remove entirely if a
comparison to follow the kernel style of implicit boolean conversions.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-5-bgray@linux.ibm.com
arch/powerpc/kernel/setup_64.c
arch/powerpc/kvm/book3s_xive_native.c
arch/powerpc/net/bpf_jit_comp.c
arch/powerpc/perf/imc-pmu.c
arch/powerpc/platforms/4xx/soc.c
arch/powerpc/platforms/pseries/lpar.c