diff mbox

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

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

Commit Message

Linus Lüssing Aug. 14, 2015, 3:23 p.m. UTC
Help! Help! \o/ I'm trapped in this commit message!!! :(

Fixes: 1798ad3f ("batman-adv: Fix broken MCAST capability check")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
 net/batman-adv/multicast.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Marek Lindner Sept. 6, 2015, 8:08 a.m. UTC | #1
On Friday, August 14, 2015 17:23:50 Linus Lüssing wrote:
> Help! Help! \o/ I'm trapped in this commit message!!!
> 
> Fixes: 1798ad3f ("batman-adv: Fix broken MCAST capability check")
> Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
> ---
>  net/batman-adv/multicast.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied in revision d126204.

Thanks,
Marek
diff mbox

Patch

diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c
index 8bdd69f..4541f08 100644
--- a/net/batman-adv/multicast.c
+++ b/net/batman-adv/multicast.c
@@ -740,7 +740,7 @@  static void batadv_mcast_tvlv_ogm_handler_v1(struct batadv_priv *bat_priv,
 	 * is a completely new orig_node no need to decrease the counter.
 	 */
 	if (orig_mcast_enabled &&
-	    !(test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities))) {
+	    !test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities)) {
 		if (orig_initialized)
 			atomic_dec(&bat_priv->mcast.num_disabled);
 		set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities);
@@ -798,7 +798,7 @@  void batadv_mcast_purge_orig(struct batadv_orig_node *orig)
 
 	spin_lock_bh(&orig->mcast_handler_lock);
 
-	if (!(test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities)) &&
+	if (!test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities) &&
 	    test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capa_initialized))
 		atomic_dec(&bat_priv->mcast.num_disabled);