]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging rtl8192e: Fixing checkpatch error in rtllib_debug.h
authorAndreas Frembs <andreas.frembs@studium.uni-erlangen.de>
Sun, 5 Jan 2014 12:25:36 +0000 (13:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 18:32:18 +0000 (10:32 -0800)
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 <andreas.frembs@studium.uni-erlangen.de>
Signed-off-by: Matthias Schoepe <matthias.schoepe@studium.uni-erlangen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_debug.h

index c59f67b263638a4ff0a8c5e31cc81f8d2ce2b881..31f616fdb5bf49394b70ce653598ec6c152dbb43 100644 (file)
@@ -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