Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41ad3d5f authored by Andreas Frembs's avatar Andreas Frembs Committed by Greg Kroah-Hartman
Browse files

Staging rtl8192e: Correcting wrong usage of macro in r8192E_phy.c and removing...


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: default avatarAndreas Frembs <andreas.frembs@studium.uni-erlangen.de>
Signed-off-by: default avatarMatthias Schoepe <matthias.schoepe@studium.uni-erlangen.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f9ce4fa3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 ?
		 "20MHz" : "40MHz")
		 "20MHz" : "40MHz");


	if (priv->rf_chip == RF_PSEUDO_11N) {
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ do { \
	if (rt_global_debug_component & component) \
		printk(KERN_DEBUG DRV_NAME ":" x "\n" , \
		       ##args);\
} while (0);
} while (0)

#define assert(expr) \
do {	\