summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/4xx
diff options
context:
space:
mode:
authorBenjamin Gray <bgray@linux.ibm.com>2023-10-11 07:37:03 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2023-10-19 08:12:47 +0200
commitddfb7d9db843fd4fbdff81fb8a8743f865c3dd96 (patch)
treed040abb002e404d1c6b3f6290f48b6735c8697f8 /arch/powerpc/platforms/4xx
parentpowerpc: Explicitly reverse bytes when checking for byte reversal (diff)
downloadlinux-ddfb7d9db843fd4fbdff81fb8a8743f865c3dd96.tar.xz
linux-ddfb7d9db843fd4fbdff81fb8a8743f865c3dd96.zip
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
Diffstat (limited to 'arch/powerpc/platforms/4xx')
-rw-r--r--arch/powerpc/platforms/4xx/soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/4xx/soc.c b/arch/powerpc/platforms/4xx/soc.c
index b2d940437a66..5412e6b21e10 100644
--- a/arch/powerpc/platforms/4xx/soc.c
+++ b/arch/powerpc/platforms/4xx/soc.c
@@ -112,7 +112,7 @@ static int __init ppc4xx_l2c_probe(void)
}
/* Install error handler */
- if (request_irq(irq, l2c_error_handler, 0, "L2C", 0) < 0) {
+ if (request_irq(irq, l2c_error_handler, 0, "L2C", NULL) < 0) {
printk(KERN_ERR "Cannot install L2C error handler"
", cache is not enabled\n");
of_node_put(np);