Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit f0935abffeb94247020f2b7314f3fd9f769ad048 Author: Linus Lüssing linus.luessing@c0d3.blue Date: Mon Jul 11 11:16:36 2016 +0200
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 Reviewed-by: Sven Eckelmann sven@narfation.org Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
f0935abffeb94247020f2b7314f3fd9f769ad048 net/batman-adv/multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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)); }
/**