Staging: most: networking: Fixed the warning of using integer as NULL
Subsystems (2)
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.
Signed-off-by Shivani Bhardwaj <[email protected]>
--- drivers/staging/most/aim-network/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/most/aim-network/networking.c +1 -1
@@ -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
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->devfrom 0 to NULL.Signed-off-by Shivani Bhardwaj <[email protected]>---
This has already been done by 1865e4ea0b2d ("Staging: most: Use NULL instead of zero")
Which tree are you using?
regards
sudip