From: Linus Lüssing Date: Mon, 11 Jul 2016 09:16:36 +0000 (+0200) Subject: batman-adv: Use bitwise instead of arithmetic operator for flags X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4d7de48c797c9207412da4e350c5170617eaf8c7;p=deliverable%2Flinux.git 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 Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c index cc915073a753..894df6020f6a 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)); } /**