Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1615885041-68750-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yang Li and committed by
Greg Kroah-Hartman
ac41ae0b d8da00e1

+1 -1
+1 -1
drivers/misc/sgi-xp/xpc_main.c
··· 207 207 { 208 208 xpc_arch_ops.heartbeat_init(); 209 209 timer_setup(&xpc_hb_timer, xpc_hb_beater, 0); 210 - xpc_hb_beater(0); 210 + xpc_hb_beater(NULL); 211 211 } 212 212 213 213 static void