[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4EB42D5B.6050201@xenotime.net>
Date: Fri, 04 Nov 2011 11:22:19 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
CC: Antonio Ospite <ospite@...denti.unina.it>
Subject: [PATCH 4/8] Documentation: update CodingStyle use of braces
From: Antonio Ospite <ospite@...denti.unina.it>
After commit 38829dc highlight that if _only_one_ branch of a
conditional statement is a single statement, then braces are to be used
on both branches.
Signed-off-by: Antonio Ospite <ospite@...denti.unina.it>
Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
---
Documentation/CodingStyle | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- lnx1104.orig/Documentation/CodingStyle
+++ lnx1104/Documentation/CodingStyle
@@ -166,8 +166,8 @@ if (condition)
else
do_that();
-This does not apply if one branch of a conditional statement is a single
-statement. Use braces in both branches.
+This does not apply if only one branch of a conditional statement is a single
+statement; in the latter case use braces in both branches:
if (condition) {
do_this();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists