Fix style error pointed out by checkpatch.pl:
ERROR: Macros with complex values should be enclosed in
parentheses

I have compiled the module just to be sure. I haven't run it
because I haven't changed any funcionality.

Signed-off-by: Alfonso Lima Astor <alfonsolimaas...@gmail.com>
---
 drivers/staging/rtl8188eu/include/odm_debug.h | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8188eu/include/odm_debug.h 
b/drivers/staging/rtl8188eu/include/odm_debug.h
index 687ff3e..fd92f7e 100644
--- a/drivers/staging/rtl8188eu/include/odm_debug.h
+++ b/drivers/staging/rtl8188eu/include/odm_debug.h
@@ -86,11 +86,13 @@
 #endif
 
 #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt)                                
\
-       if (((comp) & pDM_Odm->DebugComponents) &&                      \
-           (level <= pDM_Odm->DebugLevel)) {                           \
-               pr_info("[ODM-8188E] ");                                \
-               RT_PRINTK fmt;                                          \
-       }
+       do {                                                            \
+               if (((comp) & pDM_Odm->DebugComponents) &&              \
+                   (level <= pDM_Odm->DebugLevel)) {                   \
+                       pr_info("[ODM-8188E] ");                        \
+                       RT_PRINTK fmt;                                  \
+               }                                                       \
+       } while (0)
 
 #define ODM_RT_ASSERT(pDM_Odm, expr, fmt)                              \
        if (!(expr)) {                                                  \
-- 
2.7.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to