From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH maint 3/3] batman-adv: Remove unnecessary braces for test_bit() in MCAST
Date: Fri, 14 Aug 2015 17:23:50 +0200 [thread overview]
Message-ID: <1439565830-9776-3-git-send-email-linus.luessing@c0d3.blue> (raw)
In-Reply-To: <1439565830-9776-1-git-send-email-linus.luessing@c0d3.blue>
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(-)
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);
--
1.7.10.4
next prev parent reply other threads:[~2015-08-14 15:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 15:23 [B.A.T.M.A.N.] [PATCH maint 1/3] batman-adv: Remove unnecessary braces for test_bit() in DAT Linus Lüssing
2015-08-14 15:23 ` [B.A.T.M.A.N.] [PATCH maint 2/3] batman-adv: Remove unnecessary braces for test_bit() in NC Linus Lüssing
2015-09-06 8:07 ` Marek Lindner
2015-08-14 15:23 ` Linus Lüssing [this message]
2015-09-06 8:08 ` [B.A.T.M.A.N.] [PATCH maint 3/3] batman-adv: Remove unnecessary braces for test_bit() in MCAST Marek Lindner
2015-09-06 8:06 ` [B.A.T.M.A.N.] [PATCH maint 1/3] batman-adv: Remove unnecessary braces for test_bit() in DAT Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439565830-9776-3-git-send-email-linus.luessing@c0d3.blue \
--to=linus.luessing@c0d3.blue \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).