staging: most: Use NULL instead of 0 in assignment of pointer
Subsystems (2)
PATCH 1/1 staging: most: Use NULL instead of 0 in assignment of pointer
Fix sparse warning 'Using plain integer as NULL pointer' by replacing 0 with NULL in the assignment.
Signed-off-by Anders Fridlund <[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
1.9.1
Greg KH
maintainerQuoted 23 lines · Anders Fridlund
Fix sparse warning 'Using plain integer as NULL pointer' by replacing 0 with NULL in the assignment.
Signed-off-by Anders Fridlund <[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
1.9.1
Someone sent this patch before you did, sorry :(