Commit 32fd52d5 authored by Thomas Gardner's avatar Thomas Gardner Committed by Jonathan Corbet

Documentation/CodingStyle: add space before parenthesis in example macro

Signed-off-by: default avatarThomas Gardner <>
Signed-off-by: default avatarJonathan Corbet <>
parent 6ac9937c
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment