提交 00f548bf 编写于 作者: M Marek Lindner 提交者: Antonio Quartulli

batman-adv: checkpatch - comparison to NULL could be rewritten

Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
上级 dab7b621
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册