Skip to content

Commit

Permalink
batman-adv: checkpatch - comparison to NULL could be rewritten
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
  • Loading branch information
Marek Lindner authored and Antonio Quartulli committed May 29, 2015
1 parent dab7b62 commit 00f548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 00f548b

Please sign in to comment.