From: Marek Lindner Date: Wed, 18 Feb 2015 14:17:30 +0000 (+0800) Subject: batman-adv: checkpatch - comparison to NULL could be rewritten X-Git-Tag: v4.2-rc1~130^2~174^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=00f548bf5494ade996ae9c5e85c497dd2a3fdad5;p=karo-tx-linux.git batman-adv: checkpatch - comparison to NULL could be rewritten Signed-off-by: Marek Lindner --- diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 9426b83caab6..50cf722f4e1b 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -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);