Skip to contentSkip to conversation

Staging: most: Use NULL instead of zero

PATCH In review Ronit Halder 2 participants 2 messages Aug 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: most: Use NULL instead of zero

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

---
 drivers/staging/most/aim-network/networking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/most/aim-network/networking.c +1 -1
index c8ab239..a1e1bce 100644
@@ -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(
Signature · 1 line
2.4.0.GIT
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Wed, 19 Aug 2015 11:17:09 +0530 Ronit Halder <[email protected]> wrote:

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

Quoted 17 lines
---
 drivers/staging/most/aim-network/networking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/most/aim-network/networking.c +1 -1
index c8ab239..a1e1bce 100644
@@ -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(