diff options
author | Harry Wei | 2011-03-23 00:35:01 +0100 |
---|---|---|
committer | Linus Torvalds | 2011-03-23 01:44:16 +0100 |
commit | 38829dc9d7b46b195ab99d62c8c53c21a7adc36b (patch) | |
tree | ff38cc7aa7965af81e2d5ee5f21e2724489269ec /Documentation/Changes | |
parent | codafs: fix compile warning when CONFIG_SYSCTL=n (diff) | |
download | kernel-qcow2-linux-38829dc9d7b46b195ab99d62c8c53c21a7adc36b.tar.gz kernel-qcow2-linux-38829dc9d7b46b195ab99d62c8c53c21a7adc36b.tar.xz kernel-qcow2-linux-38829dc9d7b46b195ab99d62c8c53c21a7adc36b.zip |
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 <harryxiyou@gmail.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/Changes')
0 files changed, 0 insertions, 0 deletions