瀏覽代碼

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>
Thomas Gardner 10 年之前
父節點
當前提交
32fd52d56b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Documentation/CodingStyle

+ 1 - 1
Documentation/CodingStyle

@@ -640,7 +640,7 @@ Things to avoid when using macros:
 		do {					\
 		do {					\
 			if (blah(x) < 0)		\
 			if (blah(x) < 0)		\
 				return -EBUGGERED;	\
 				return -EBUGGERED;	\
-		} while(0)
+		} while (0)
 
 
 is a _very_ bad idea.  It looks like a function call but exits the "calling"
 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.
 function; don't break the internal parsers of those who will read the code.