Skip to contentSkip to conversation

misc/sgi-xp: use NULL instead of using plain integer as pointer

PATCH In review Yang Li 2 participants 2 messages Mar 16, 2021 – Mar 17, 2021 Char and misc drivers

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 misc/sgi-xp: use NULL instead of using plain integer as pointer

This fixes the following sparse warnings:
drivers/misc/sgi-xp/xpc_main.c:210:23: warning: Using plain integer as NULL pointer

---
 drivers/misc/sgi-xp/xpc_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/sgi-xp/xpc_main.c +1 -1
index 84610bb..b2c3c22 100644
@@ -207,7 +207,7 @@
 {
 	xpc_arch_ops.heartbeat_init();
 	timer_setup(&xpc_hb_timer, xpc_hb_beater, 0);
-	xpc_hb_beater(0);
+	xpc_hb_beater(NULL);
 }
 
 static void
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Yang Li

This fixes the following sparse warnings:
drivers/misc/sgi-xp/xpc_main.c:210:23: warning: Using plain integer as NULL pointer

---
 drivers/misc/sgi-xp/xpc_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/sgi-xp/xpc_main.c +1 -1
index 84610bb..b2c3c22 100644
@@ -207,7 +207,7 @@
 {
 	xpc_arch_ops.heartbeat_init();
 	timer_setup(&xpc_hb_timer, xpc_hb_beater, 0);
-	xpc_hb_beater(0);
+	xpc_hb_beater(NULL);
 }
 
 static void
Signature · 1 line
1.8.3.1
Signature · 1 line
Steve Wahl, Hewlett Packard Enterprise