Skip to content

Commit

Permalink
Documentation/CodingStyle: add space before parenthesis in example macro
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gardner <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
atomgardner authored and Jonathan Corbet committed Jan 25, 2016
1 parent 6ac9937 commit 32fd52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 32fd52d

Please sign in to comment.