diff options
author | Sven Eckelmann <sven@narfation.org> | 2015-04-23 18:22:24 +0200 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-06-07 17:07:19 +0200 |
commit | a2f2b6cd41f5b4f8b5b7914e4e52e4954f631dd2 (patch) | |
tree | 8652c1850c509bad706fa3a01f5778c4249eafa8 /net/batman-adv/main.h | |
parent | 1e2c2a4fe4a52cc55a78727778119f9a74283b8a (diff) | |
download | linux-a2f2b6cd41f5b4f8b5b7914e4e52e4954f631dd2.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index bf0019a41a12..41d27c7872b9 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[]; |