summaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-12-26 12:41:33 +0100
committerAntonio Quartulli <antonio@meshcoding.com>2015-06-03 10:58:31 +0200
commit23badd6dbe5ed66668b0084950c5f66062923e10 (patch)
treea55bd494a53b489bfe602dc903dfe95bfb0d1e62 /net/batman-adv
parent564891510eb139dd073a0f1a5a7f5641b5bcc238 (diff)
downloadlinux-stable-23badd6dbe5ed66668b0084950c5f66062923e10.tar.gz
linux-stable-23badd6dbe5ed66668b0084950c5f66062923e10.tar.bz2
linux-stable-23badd6dbe5ed66668b0084950c5f66062923e10.zip
batman-adv: iv_ogm_orig_update, style, add missing brackets
CodingStyle describes that either none or both branches of a conditional have to have brackets. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bat_iv_ogm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 159f30af1dc3..66ac9e85d1ce 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -1032,9 +1032,10 @@ batadv_iv_ogm_orig_update(struct batadv_priv *bat_priv,
batadv_orig_node_free_ref(orig_tmp);
if (!neigh_node)
goto unlock;
- } else
+ } else {
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
"Updating existing last-hop neighbor of originator\n");
+ }
rcu_read_unlock();
neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing);