]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging rtl8192e: Correcting wrong usage of macro in r8192E_phy.c and removing corres...
authorAndreas Frembs <andreas.frembs@studium.uni-erlangen.de>
Sun, 5 Jan 2014 12:25:37 +0000 (13:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 18:32:18 +0000 (10:32 -0800)
We fixed in rtllib_debug.h the following checkpatch warning:
WARNING: do {} while (0) macros should not be semicolon terminated.

After deleting this semicolon we also had to fix the wrong use of this macro in rtl8192e/r8192E_phy.c

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/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtllib_debug.h

index 21e6ddde68a2bb4ac389184d3eae7b7628874c65..5d6d304c9c01c70f4a5d7b5da88eab9cf3de05e5 100644 (file)
@@ -1179,7 +1179,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
 
        RT_TRACE(COMP_SWBW, "==>rtl8192_SetBWModeWorkItem()  Switch to %s "
                 "bandwidth\n", priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ?
 
        RT_TRACE(COMP_SWBW, "==>rtl8192_SetBWModeWorkItem()  Switch to %s "
                 "bandwidth\n", priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ?
-                "20MHz" : "40MHz")
+                "20MHz" : "40MHz");
 
 
        if (priv->rf_chip == RF_PSEUDO_11N) {
 
 
        if (priv->rf_chip == RF_PSEUDO_11N) {
index 31f616fdb5bf49394b70ce653598ec6c152dbb43..7537dae89a75ac3096970b0d506dcb35aa1e6797 100644 (file)
@@ -75,7 +75,7 @@ do {                  \
        if (rt_global_debug_component & component) \
                printk(KERN_DEBUG DRV_NAME ":" x "\n" , \
                       ##args);\
        if (rt_global_debug_component & component) \
                printk(KERN_DEBUG DRV_NAME ":" x "\n" , \
                       ##args);\
-} while (0);
+} while (0)
 
 #define assert(expr) \
 do {   \
 
 #define assert(expr) \
 do {   \