All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: most: Use NULL instead of zero
@ 2015-08-19  5:47 Ronit Halder
  2015-08-19 15:14 ` Christian Gromm
  0 siblings, 1 reply; 2+ messages in thread
From: Ronit Halder @ 2015-08-19  5:47 UTC (permalink / raw)
  To: gregkh; +Cc: christian.gromm, mhornung.linux, devel, linux-kernel, Ronit Halder

This patch fixes the warning generated by sparse
"Using plain integer as NULL pointer" by using NULL
instead of zero.

Signed-off-by: Ronit halder <ronit.crj@gmail.com>
---
 drivers/staging/most/aim-network/networking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c
index c8ab239..a1e1bce 100644
--- a/drivers/staging/most/aim-network/networking.c
+++ b/drivers/staging/most/aim-network/networking.c
@@ -295,7 +295,7 @@ static void most_net_rm_netdev_safe(struct net_dev_context *nd)
 
 	unregister_netdev(nd->dev);
 	free_netdev(nd->dev);
-	nd->dev = 0;
+	nd->dev = NULL;
 }
 
 static struct net_dev_context *get_net_dev_context(
-- 
2.4.0.GIT


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

* Re: [PATCH] Staging: most: Use NULL instead of zero
  2015-08-19  5:47 [PATCH] Staging: most: Use NULL instead of zero Ronit Halder
@ 2015-08-19 15:14 ` Christian Gromm
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Gromm @ 2015-08-19 15:14 UTC (permalink / raw)
  To: Ronit Halder; +Cc: gregkh, mhornung.linux, devel, linux-kernel

On Wed, 19 Aug 2015 11:17:09 +0530
Ronit Halder <ronit.crj@gmail.com> wrote:

> This patch fixes the warning generated by sparse
> "Using plain integer as NULL pointer" by using NULL
> instead of zero.
> 
> Signed-off-by: Ronit halder <ronit.crj@gmail.com>
Acked-by: Christian Gromm <christian.gromm@microchip.com>
> ---
>  drivers/staging/most/aim-network/networking.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c
> index c8ab239..a1e1bce 100644
> --- a/drivers/staging/most/aim-network/networking.c
> +++ b/drivers/staging/most/aim-network/networking.c
> @@ -295,7 +295,7 @@ static void most_net_rm_netdev_safe(struct net_dev_context *nd)
>  
>  	unregister_netdev(nd->dev);
>  	free_netdev(nd->dev);
> -	nd->dev = 0;
> +	nd->dev = NULL;
>  }
>  
>  static struct net_dev_context *get_net_dev_context(


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

end of thread, other threads:[~2015-08-19 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-19  5:47 [PATCH] Staging: most: Use NULL instead of zero Ronit Halder
2015-08-19 15:14 ` Christian Gromm

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.