Skip to contentSkip to conversation

Staging: most: networking: Fixed the warning of using integer as NULL

PATCH In review Shivani Bhardwaj 2 participants 2 messages Oct 7, 2015

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

PATCH 1/1 Staging: most: networking: Fixed the warning of using integer as NULL

Fixed the warning generated by sparse : Using plain integer as NULL pointer, by changing the value pointed to by nd->dev from 0 to NULL.

---
 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.1.0
#1 lore raw
Quoted 5 lines · Shivani Bhardwaj

Fixed the warning generated by sparse : Using plain integer as NULL pointer, by changing the value pointed to by nd->dev from 0 to NULL.

---

This has already been done by 1865e4ea0b2d ("Staging: most: Use NULL instead of zero")

Which tree are you using?

regards
sudip