diff options
author | Andreas Frembs <andreas.frembs@studium.uni-erlangen.de> | 2014-01-05 13:25:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-09 10:32:18 -0800 |
commit | f9ce4fa329e005c99a5e61e7b185ff477f021f77 (patch) | |
tree | 09c7efe88d8178e9a1311d538dd60aad850817c1 /drivers/staging/rtl8192e | |
parent | b93ae9e5d9ff334c0fcfc0ce780696b1160e3028 (diff) | |
download | blackbird-obmc-linux-f9ce4fa329e005c99a5e61e7b185ff477f021f77.tar.gz blackbird-obmc-linux-f9ce4fa329e005c99a5e61e7b185ff477f021f77.zip |
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 <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>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_debug.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |