From: Andreas Frembs Date: Sun, 5 Jan 2014 12:25:36 +0000 (+0100) Subject: Staging rtl8192e: Fixing checkpatch error in rtllib_debug.h X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f9ce4fa329e005c99a5e61e7b185ff477f021f77;p=deliverable%2Flinux.git Staging rtl8192e: Fixing checkpatch error in rtllib_debug.h In rtllib_debug.h we fixed the following checkpatch error: ERROR: Macros with complex values should be enclosed in parenthesis We fixed this with a do {} while (0), because otherwise the compiler complained. Signed-off-by: Andreas Frembs Signed-off-by: Matthias Schoepe Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtllib_debug.h b/drivers/staging/rtl8192e/rtllib_debug.h index c59f67b26363..31f616fdb5bf 100644 --- a/drivers/staging/rtl8192e/rtllib_debug.h +++ b/drivers/staging/rtl8192e/rtllib_debug.h @@ -78,9 +78,11 @@ do { \ } while (0); #define assert(expr) \ +do { \ if (!(expr)) { \ printk(KERN_INFO "Assertion failed! %s,%s,%s,line=%d\n", \ #expr, __FILE__, __func__, __LINE__); \ - } + } \ +} while (0); #endif