summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/soft-interface.c
diff options
context:
space:
mode:
authorMarek Lindner <mareklindner@neomailbox.ch>2015-02-18 22:17:30 +0800
committerAntonio Quartulli <antonio@meshcoding.com>2015-05-29 10:13:37 +0200
commit00f548bf5494ade996ae9c5e85c497dd2a3fdad5 (patch)
treeae805391bc0b83f52cde1795d4009dd6fa9c68d4 /net/batman-adv/soft-interface.c
parentdab7b62190c5abbe90eef4e9f9e7c28492e77eba (diff)
downloadtalos-obmc-linux-00f548bf5494ade996ae9c5e85c497dd2a3fdad5.tar.gz
talos-obmc-linux-00f548bf5494ade996ae9c5e85c497dd2a3fdad5.zip
batman-adv: checkpatch - comparison to NULL could be rewritten
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r--net/batman-adv/soft-interface.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud