projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac9937
)
Documentation/CodingStyle: add space before parenthesis in example macro
author
Thomas Gardner
<tmg@fastmail.com>
Mon, 25 Jan 2016 05:54:39 +0000
(15:54 +1000)
committer
Jonathan Corbet
<corbet@lwn.net>
Mon, 25 Jan 2016 19:36:28 +0000
(12:36 -0700)
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/CodingStyle
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/CodingStyle
b/Documentation/CodingStyle
index db653774c0b74fe5f3a98598b5b68d6c10a20e34..9a70ddd16584bd92b1f834286adf6706ced4f0dc 100644
(file)
--- 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.