sparc: Compare pointers to NULL instead of 0
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 4 Apr 2024 19:29:33 +0000 (21:29 +0200)
committerAndreas Larsson <andreas@gaisler.com>
Mon, 22 Apr 2024 14:45:52 +0000 (16:45 +0200)
commitc7933eaeaf12dd06a7b721ad50b7a78b0f3cbf46
tree52c21ddd2fa75e762e535f761d68f4eb9c3079a9
parent6c94284465ffefa9c5afc5288bb8cec2a020317f
sparc: Compare pointers to NULL instead of 0

Fixes the following two Coccinelle/coccicheck warnings reported by
badzero.cocci:

WARNING comparing pointer to 0
WARNING comparing pointer to 0

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240404192932.13075-2-thorsten.blum@toblux.com
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/prom/tree_64.c