All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] misc/sgi-xp: use NULL instead of using plain integer as pointer
@ 2021-03-16  8:57 Yang Li
  2021-03-17 14:53 ` Steve Wahl
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2021-03-16  8:57 UTC (permalink / raw)
  To: robinmholt; +Cc: steve.wahl, mike.travis, arnd, gregkh, linux-kernel, Yang Li

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] misc/sgi-xp: use NULL instead of using plain integer as pointer
  2021-03-16  8:57 [PATCH] misc/sgi-xp: use NULL instead of using plain integer as pointer Yang Li
@ 2021-03-17 14:53 ` Steve Wahl
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Wahl @ 2021-03-17 14:53 UTC (permalink / raw)
  To: Yang Li; +Cc: robinmholt, steve.wahl, mike.travis, arnd, gregkh, linux-kernel

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
> 

-- 
Steve Wahl, Hewlett Packard Enterprise

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-17 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16  8:57 [PATCH] misc/sgi-xp: use NULL instead of using plain integer as pointer Yang Li
2021-03-17 14:53 ` Steve Wahl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.