diff mbox

[maint,2/3] batman-adv: Remove unnecessary braces for test_bit() in NC

Message ID 1439565830-9776-2-git-send-email-linus.luessing@c0d3.blue
State Accepted, archived
Commit 5abaf07b4c24ab2d7bd9b0c0de946b1ee5e946ff
Headers show

Commit Message

Linus Lüssing Aug. 14, 2015, 3:23 p.m. UTC
Fixes: dfb27e75 ("batman-adv: Fix broken NC capability check")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
 net/batman-adv/network-coding.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marek Lindner Sept. 6, 2015, 8:07 a.m. UTC | #1
On Friday, August 14, 2015 17:23:49 Linus Lüssing wrote:
> Fixes: dfb27e75 ("batman-adv: Fix broken NC capability check")
> Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
> ---
>  net/batman-adv/network-coding.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied in revision 5abaf07.

Thanks,
Marek
diff mbox

Patch

diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index 55a0b28..1a1f7e6 100644
--- a/net/batman-adv/network-coding.c
+++ b/net/batman-adv/network-coding.c
@@ -894,7 +894,7 @@  void batadv_nc_update_nc_node(struct batadv_priv *bat_priv,
 		goto out;
 
 	/* check if orig node is network coding enabled */
-	if (!(test_bit(BATADV_ORIG_CAPA_HAS_NC, &orig_node->capabilities)))
+	if (!test_bit(BATADV_ORIG_CAPA_HAS_NC, &orig_node->capabilities))
 		goto out;
 
 	/* accept ogms from 'good' neighbors and single hop neighbors */