OSDN Git Service

staging: ks7010: fix coding style issue of enclosing complex macro value in parentheses
authorChetan Sethi <cpsethi369@gmail.com>
Tue, 28 Feb 2017 03:00:23 +0000 (12:00 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:07 +0000 (09:17 +0100)
This patch fixes error of enclosing complex macro value in parentheses,
error as issued by checkpatch

Signed-off-by: Chetan Sethi <cpsethi369@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan.h

index 089ceb9..7098c6f 100644 (file)
 
 #ifdef KS_WLAN_DEBUG
 #define DPRINTK(n, fmt, args...) \
-                 if (KS_WLAN_DEBUG > (n)) \
-                       printk(KERN_NOTICE "%s: "fmt, __FUNCTION__, ## args)
+       do { \
+               if (KS_WLAN_DEBUG > (n)) \
+                       printk(KERN_NOTICE "%s: "fmt, __FUNCTION__, ## args); \
+       } while (0)
 #else
 #define DPRINTK(n, fmt, args...)
 #endif