Skip to contentSkip to conversation

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

PATCH Applied Marek Lindner 1 participant 2 messages Feb 18, 2015 – Feb 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: checkpatch - comparison to NULL could be rewritten

---
 soft-interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
soft-interface.c +1 -1
index 8748987..d41746b 100644
@@ -824,7 +824,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);
Signature · 1 line
2.1.4
author Applied
#1 lore raw
Quoted 4 lines · On Wednesday, February 18, 2015 22:17:30 Marek Lindner wrote:
---
 soft-interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied in revision 4ce865d.

Regards,
Marek