diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2016-07-11 09:16:36 (GMT) |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-08-09 05:54:34 (GMT) |
commit | 4d7de48c797c9207412da4e350c5170617eaf8c7 (patch) | |
tree | 331d4521c5eb0647610af5cde3fa8772f465cd23 | |
parent | f19dc7770f5d55274ef9821392199daca03469a9 (diff) | |
download | linux-4d7de48c797c9207412da4e350c5170617eaf8c7.tar.xz |
batman-adv: Use bitwise instead of arithmetic operator for flags
This silences the following coccinelle warning:
"WARNING: sum of probable bitmasks, consider |"
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
-rw-r--r-- | net/batman-adv/multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c index cc91507..894df60 100644 --- a/net/batman-adv/multicast.c +++ b/net/batman-adv/multicast.c @@ -528,7 +528,7 @@ update: } return !(mcast_data.flags & - (BATADV_MCAST_WANT_ALL_IPV4 + BATADV_MCAST_WANT_ALL_IPV6)); + (BATADV_MCAST_WANT_ALL_IPV4 | BATADV_MCAST_WANT_ALL_IPV6)); } /** |