batman-adv: 2015.1 bugfixes & stability updates
[feed/routing.git] / batman-adv / patches / 0005-batman-adv-Remove-unnecessary-braces-for-test_bit-in.patch
1 From 5abaf07b4c24ab2d7bd9b0c0de946b1ee5e946ff Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Linus=20L=C3=BCssing?= <linus.luessing@c0d3.blue>
3 Date: Fri, 14 Aug 2015 17:23:49 +0200
4 Subject: [PATCH 5/9] batman-adv: Remove unnecessary braces for test_bit() in
5 NC
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Fixes: dfb27e75 ("batman-adv: Fix broken NC capability check")
11 Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
12 Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
13 ---
14 net/batman-adv/network-coding.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
18 index 55a0b28..1a1f7e6 100644
19 --- a/net/batman-adv/network-coding.c
20 +++ b/net/batman-adv/network-coding.c
21 @@ -894,7 +894,7 @@ void batadv_nc_update_nc_node(struct batadv_priv *bat_priv,
22 goto out;
23
24 /* check if orig node is network coding enabled */
25 - if (!(test_bit(BATADV_ORIG_CAPA_HAS_NC, &orig_node->capabilities)))
26 + if (!test_bit(BATADV_ORIG_CAPA_HAS_NC, &orig_node->capabilities))
27 goto out;
28
29 /* accept ogms from 'good' neighbors and single hop neighbors */
30 --
31 2.5.0
32