Staging: most: Use NULL instead of zero
authorRonit Halder <ronit.crj@gmail.com>
Wed, 19 Aug 2015 05:47:09 +0000 (11:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:32 +0000 (18:24 -0700)
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>
drivers/staging/most/aim-network/networking.c

index c8ab2399faad9b79aab6acbd0ac3dfec5314bc2a..a1e1bce16296bc94f8dffb8fc4914df5d73d1fa9 100644 (file)
@@ -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(
This page took 0.025109 seconds and 5 git commands to generate.