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. Signed-off-by: Ronit halder <ronit.crj@gmail.com> Acked-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
858e1a27c1
commit
1865e4ea0b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user