[21/31] batman-adv: iv_ogm_orig_update, style, add missin brackets

Message ID 1417519009-20699-22-git-send-email-mpa@pengutronix.de (mailing list archive)
State Accepted, archived
Commit 3040f9c5c96d5cb9712a55d4ed0d69f04c386614
Headers

Commit Message

Markus Pargmann Dec. 2, 2014, 11:16 a.m. UTC
  CodingStyle describes that either none or both branches of a conditional
have to have brackets.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 bat_iv_ogm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
index 9482a0889201..46d1d28b5d97 100644
--- a/bat_iv_ogm.c
+++ b/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);