Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging rtl8192e: Correcting wrong usage of macro in r8192E_phy.c and removing corresponding warning in rtllib_debug.h

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>

authored by

Andreas Frembs and committed by
Greg Kroah-Hartman
41ad3d5f f9ce4fa3

+2 -2
+1 -1
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
··· 1179 1179 1180 1180 RT_TRACE(COMP_SWBW, "==>rtl8192_SetBWModeWorkItem() Switch to %s " 1181 1181 "bandwidth\n", priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ? 1182 - "20MHz" : "40MHz") 1182 + "20MHz" : "40MHz"); 1183 1183 1184 1184 1185 1185 if (priv->rf_chip == RF_PSEUDO_11N) {
+1 -1
drivers/staging/rtl8192e/rtllib_debug.h
··· 75 75 if (rt_global_debug_component & component) \ 76 76 printk(KERN_DEBUG DRV_NAME ":" x "\n" , \ 77 77 ##args);\ 78 - } while (0); 78 + } while (0) 79 79 80 80 #define assert(expr) \ 81 81 do { \