]> git.karo-electronics.de Git - linux-beck.git/commitdiff
linux-next: drivers: staging: most: Fix return value
authorMichael Hornung <mhornung.linux@gmail.com>
Fri, 31 Jul 2015 20:18:17 +0000 (22:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:17:21 +0000 (16:17 -0700)
* Fix sparse warning "Using plain integer as NULL pointer"

Signed-off-by: Michael Hornung <mhornung.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-network/networking.c

index 4639c49240f185dd519e58a55f4070055dae21d0..c8ab2399faad9b79aab6acbd0ac3dfec5314bc2a 100644 (file)
@@ -311,7 +311,7 @@ static struct net_dev_context *get_net_dev_context(
                }
        }
        spin_unlock(&list_lock);
-       return 0;
+       return NULL;
 }
 
 static int aim_probe_channel(struct most_interface *iface, int channel_idx,