Commit c7933eae authored by Thorsten Blum's avatar Thorsten Blum Committed by Andreas Larsson

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: default avatarThorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: default avatarAndreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240404192932.13075-2-thorsten.blum@toblux.comSigned-off-by: default avatarAndreas Larsson <andreas@gaisler.com>
parent 6c942844
...@@ -332,7 +332,7 @@ prom_setprop(phandle node, const char *pname, char *value, int size) ...@@ -332,7 +332,7 @@ prom_setprop(phandle node, const char *pname, char *value, int size)
if (size == 0) if (size == 0)
return 0; return 0;
if ((pname == 0) || (value == 0)) if ((pname == NULL) || (value == NULL))
return 0; return 0;
#ifdef CONFIG_SUN_LDOMS #ifdef CONFIG_SUN_LDOMS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment