Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54700
b: refs/heads/master
c: e659ba4
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Linus Torvalds committed May 8, 2007
1 parent 9ca6d4f commit 7e43e7d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28be5abb400e5e082f5225105fdc69337ec0c0b4
refs/heads/master: e659ba4a0d2d471c0d73590f78e1a1b5a1eede48
15 changes: 15 additions & 0 deletions trunk/Documentation/CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@ supply of new-lines on your screen is not a renewable resource (think
25-line terminal screens here), you have more empty lines to put
comments on.

Do not unnecessarily use braces where a single statement will do.

if (condition)
action();

This does not apply if one branch of a conditional statement is a single
statement. Use braces in both branches.

if (condition) {
do_this();
do_that();
} else {
otherwise();
}

3.1: Spaces

Linux kernel style for use of spaces depends (mostly) on
Expand Down

0 comments on commit 7e43e7d

Please sign in to comment.