projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f19dc77
)
batman-adv: Use bitwise instead of arithmetic operator for flags
author
Linus Lüssing
<linus.luessing@c0d3.blue>
Mon, 11 Jul 2016 09:16:36 +0000
(11:16 +0200)
committer
Simon Wunderlich
<sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:34 +0000
(07:54 +0200)
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>
net/batman-adv/multicast.c
patch
|
blob
|
blame
|
history
diff --git
a/net/batman-adv/multicast.c
b/net/batman-adv/multicast.c
index cc915073a753922c0bb61b577ad651bbde168e59..894df6020f6abd7bbce2e18556eb82469c2841cd 100644
(file)
--- 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));
}
/**