From: Harry Wei Date: Tue, 22 Mar 2011 23:35:01 +0000 (-0700) Subject: Documentation/CodingStyle: flesh out if-else examples X-Git-Tag: v2.6.39-rc1~214 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38829dc9d7b46b195ab99d62c8c53c21a7adc36b;p=pandora-kernel.git Documentation/CodingStyle: flesh out if-else examples There is a missing case for "Chapter 3: Placing Braces and Spaces". We often know we should not use braces where a single statement. The first case is: if (condition) action(); Another case is: if (condition) do_this(); else do_that(); However, I can not find a description of the second case. Signed-off-by: Harry Wei Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed