diff mbox

[OpenWrt-Devel,12/12] uci_internal: use comma expression for UCI_INTERNAL() call.

Message ID 1418633213-50491-13-git-send-email-yszhou4tech@gmail.com
State Superseded
Headers show

Commit Message

Yousong Zhou Dec. 15, 2014, 8:46 a.m. UTC
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 uci_internal.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/uci_internal.h b/uci_internal.h
index 89863f1..cb8f86c 100644
--- a/uci_internal.h
+++ b/uci_internal.h
@@ -227,10 +227,10 @@  struct uci_backend _var = {		\
  * Sets Exception handling to passthrough mode.
  * Allows API functions to change behavior compared to public use
  */
-#define UCI_INTERNAL(func, ctx, ...) do { \
-	ctx->internal = true;		\
-	func(ctx, __VA_ARGS__);		\
-} while (0)
+#define UCI_INTERNAL(func, ctx, ...) (	\
+	ctx->internal = true,		\
+	func(ctx, __VA_ARGS__)		\
+)
 
 /**
  * UCI_NESTED: Do an normal nested call of a public API function