aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2015-04-23 16:22:24 (GMT)
committerAntonio Quartulli <antonio@meshcoding.com>2015-06-07 15:07:19 (GMT)
commita2f2b6cd41f5b4f8b5b7914e4e52e4954f631dd2 (patch)
tree8652c1850c509bad706fa3a01f5778c4249eafa8 /net/batman-adv/main.h
parent1e2c2a4fe4a52cc55a78727778119f9a74283b8a (diff)
batman-adv: Clarify calculation precedence for '&' and '?'
Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index bf0019a4..41d27c7 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -182,7 +182,7 @@ struct batadv_ogm_packet;
struct seq_file;
struct sk_buff;
-#define BATADV_PRINT_VID(vid) (vid & BATADV_VLAN_HAS_TAG ? \
+#define BATADV_PRINT_VID(vid) ((vid & BATADV_VLAN_HAS_TAG) ? \
(int)(vid & VLAN_VID_MASK) : -1)
extern char batadv_routing_algo[];

Privacy Policy