X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Documentation%2FCodingStyle;h=58b0bf9178349c435fd53674d96c29d7ecea0414;hb=66bbf58b55619061b110460ee1c5485137fdf0e0;hp=1cd3478e5834e0a7a8e1110ebd1a736989794148;hpb=08351fc6a75731226e1112fc7254542bd3a2912e;p=pandora-kernel.git diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index 1cd3478e5834..58b0bf917834 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -168,6 +168,13 @@ Do not unnecessarily use braces where a single statement will do. if (condition) action(); +and + +if (condition) + do_this(); +else + do_that(); + This does not apply if one branch of a conditional statement is a single statement. Use braces in both branches.