Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 534aa4a53c8c63e008b4a2470113f0f50c9f0d16 Author: Martin Hundebøll martin@hundeboll.net Date: Tue Feb 18 12:03:55 2014 +0100
batman-adv: make the use of braces in if-else consistent
To avoid confusion, the linux kernel coding style discourage the use of one if-else branch with braces and another without braces.
Introduced-by: 65d8217193427026169c48112c561c5ca4d1bd18 ("batman-adv: compat: fix null pointer exception for kernels < 3.9")
Signed-off-by: Martin Hundebøll martin@hundeboll.net Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
534aa4a53c8c63e008b4a2470113f0f50c9f0d16 compat.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/compat.h b/compat.h index 7beba36..0ceb2b1 100644 --- a/compat.h +++ b/compat.h @@ -167,8 +167,9 @@ static inline int batadv_param_set_copystring(const char *val, rcu_read_unlock(); \ dev_hold(dev); \ return dev; \ - } else \ - dev = NULL; + } else {\ + dev = NULL; \ + }
#endif /* < KERNEL_VERSION(2, 6, 36) */