Re: [PATCH RFC tip/core/rcu 1/2] rcu: Fix code-style issues involving"else"

From: Lai Jiangshan
Date: Fri May 18 2012 - 03:32:14 EST


On 05/18/2012 06:12 AM, Paul E. McKenney wrote:
> From: "Paul E. McKenney" <paul.mckenney@xxxxxxxxxx>
>
> The Linux kernel coding style says that single-statement blocks should
> omit curly braces unless the other leg of the "if" statement has
> multiple statements, in which case the curly braces should be included.
> This commit fixes RCU's violations of this rule.
>
> Signed-off-by: Paul E. McKenney <paul.mckenney@xxxxxxxxxx>
> Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx>
> ---
> kernel/rcutiny_plugin.h | 3 ++-
> kernel/rcutorture.c | 3 ++-
> kernel/rcutree.c | 7 ++++---
> kernel/rcutree_plugin.h | 18 ++++++++++--------
> 4 files changed, 18 insertions(+), 13 deletions(-)
>

Acked-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/