summaryrefslogtreecommitdiffstats
path: root/Documentation/CodingStyle
diff options
context:
space:
mode:
authorThomas Gardner <tmg@fastmail.com>2016-01-25 15:54:39 +1000
committerJonathan Corbet <corbet@lwn.net>2016-01-25 12:36:28 -0700
commit32fd52d56b3d223c567e17727f30cd6286f8f716 (patch)
tree944c06ec773c95f9bb66456e3ae4f6407ea3b16c /Documentation/CodingStyle
parent6ac9937c976443743962cfe7b6893163adadbda5 (diff)
downloadop-kernel-dev-32fd52d56b3d223c567e17727f30cd6286f8f716.zip
op-kernel-dev-32fd52d56b3d223c567e17727f30cd6286f8f716.tar.gz
Documentation/CodingStyle: add space before parenthesis in example macro
Signed-off-by: Thomas Gardner <tmg@fastmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/CodingStyle')
-rw-r--r--Documentation/CodingStyle2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index db65377..9a70ddd 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@ -640,7 +640,7 @@ Things to avoid when using macros:
do { \
if (blah(x) < 0) \
return -EBUGGERED; \
- } while(0)
+ } while (0)
is a _very_ bad idea. It looks like a function call but exits the "calling"
function; don't break the internal parsers of those who will read the code.
OpenPOWER on IntegriCloud