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

Message ID 1424269050-29692-1-git-send-email-mareklindner@neomailbox.ch (mailing list archive)
State Accepted, archived
Commit 4ce865db1b7dcc29acf9405291907a0ac8518883
Headers

Commit Message

Marek Lindner Feb. 18, 2015, 2:17 p.m. UTC
  Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
---
 soft-interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Marek Lindner Feb. 19, 2015, 3:44 p.m. UTC | #1
On Wednesday, February 18, 2015 22:17:30 Marek Lindner wrote:
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
> ---
>  soft-interface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied in revision 4ce865d.

Regards,
Marek
  

Patch

diff --git a/soft-interface.c b/soft-interface.c
index 8748987..d41746b 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -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);