batman-adv: checkpatch - comparison to NULL could be rewritten
authorMarek Lindner <mareklindner@neomailbox.ch>
Wed, 18 Feb 2015 14:17:30 +0000 (22:17 +0800)
committerAntonio Quartulli <antonio@meshcoding.com>
Fri, 29 May 2015 08:13:37 +0000 (10:13 +0200)
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/soft-interface.c

index 9426b83caab6917912dd66963f8c819e5edf75d4..50cf722f4e1bc704b51a52f9b350816112ba3652 100644 (file)
@@ -818,7 +818,7 @@ static int batadv_softif_slave_add(struct net_device *dev,
        int ret = -EINVAL;
 
        hard_iface = batadv_hardif_get_by_netdev(slave_dev);
-       if (!hard_iface || hard_iface->soft_iface != NULL)
+       if (!hard_iface || hard_iface->soft_iface)
                goto out;
 
        ret = batadv_hardif_enable_interface(hard_iface, dev->name);