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

Message ID 1615885041-68750-1-git-send-email-yang.lee@linux.alibaba.com
State Accepted
Commit ac41ae0b12c83229f2b1102c4ed9ad96bf8de946
Headers show
Series
  • misc/sgi-xp: use NULL instead of using plain integer as pointer
Related show

Commit Message

Yang Li March 16, 2021, 8:57 a.m. UTC
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>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Wahl March 17, 2021, 2:53 p.m. UTC | #1
Reviewed-by: Steve Wahl	<steve.wahl@hpe.com>

On Tue, Mar 16, 2021 at 04:57:21PM +0800, Yang Li wrote:
> 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>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  drivers/misc/sgi-xp/xpc_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
> index 84610bb..b2c3c22 100644
> --- a/drivers/misc/sgi-xp/xpc_main.c
> +++ b/drivers/misc/sgi-xp/xpc_main.c
> @@ -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
> -- 
> 1.8.3.1
>

Patch
diff mbox series

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 84610bb..b2c3c22 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -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