public inbox for linux-kernel@vger.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

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox