mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 01:50:05 +07:00
batman-adv: checkpatch - comparison to NULL could be rewritten
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
This commit is contained in:
parent
dab7b62190
commit
00f548bf54
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user