diff options
author | Antonio Quartulli <antonio@meshcoding.com> | 2014-09-01 08:37:29 -0400 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-01-07 11:21:56 -0500 |
commit | 32db6aaafef317be799265a5be1840b28bee8c78 (patch) | |
tree | 0d5c641b44606b33d0a6407829dd9cd7c56d87d6 /net/batman-adv/bat_iv_ogm.c | |
parent | 8a3f8b6ac5c5791a04d0d30636190bfc68f2e37b (diff) |
batman-adv: checkpatch - remove unnecessary parentheses
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/bat_iv_ogm.c')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index 4dd7c407b4cc..00e00e09b000 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c | |||
@@ -878,7 +878,7 @@ batadv_iv_ogm_slide_own_bcast_window(struct batadv_hard_iface *hard_iface) | |||
878 | hlist_for_each_entry_rcu(orig_node, head, hash_entry) { | 878 | hlist_for_each_entry_rcu(orig_node, head, hash_entry) { |
879 | spin_lock_bh(&orig_node->bat_iv.ogm_cnt_lock); | 879 | spin_lock_bh(&orig_node->bat_iv.ogm_cnt_lock); |
880 | word_index = hard_iface->if_num * BATADV_NUM_WORDS; | 880 | word_index = hard_iface->if_num * BATADV_NUM_WORDS; |
881 | word = &(orig_node->bat_iv.bcast_own[word_index]); | 881 | word = &orig_node->bat_iv.bcast_own[word_index]; |
882 | 882 | ||
883 | batadv_bit_get_packet(bat_priv, word, 1, 0); | 883 | batadv_bit_get_packet(bat_priv, word, 1, 0); |
884 | if_num = hard_iface->if_num; | 884 | if_num = hard_iface->if_num; |
@@ -1663,7 +1663,7 @@ static void batadv_iv_ogm_process(const struct sk_buff *skb, int ogm_offset, | |||
1663 | offset = if_num * BATADV_NUM_WORDS; | 1663 | offset = if_num * BATADV_NUM_WORDS; |
1664 | 1664 | ||
1665 | spin_lock_bh(&orig_neigh_node->bat_iv.ogm_cnt_lock); | 1665 | spin_lock_bh(&orig_neigh_node->bat_iv.ogm_cnt_lock); |
1666 | word = &(orig_neigh_node->bat_iv.bcast_own[offset]); | 1666 | word = &orig_neigh_node->bat_iv.bcast_own[offset]; |
1667 | bit_pos = if_incoming_seqno - 2; | 1667 | bit_pos = if_incoming_seqno - 2; |
1668 | bit_pos -= ntohl(ogm_packet->seqno); | 1668 | bit_pos -= ntohl(ogm_packet->seqno); |
1669 | batadv_set_bit(word, bit_pos); | 1669 | batadv_set_bit(word, bit_pos); |