Commit 5d33549a authored by Mike McCormack's avatar Mike McCormack Committed by Greg Kroah-Hartman

Staging: rtl8192e: Remove assert macro

Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dd184733
...@@ -152,11 +152,6 @@ do { if(rt_global_debug_component & component) \ ...@@ -152,11 +152,6 @@ do { if(rt_global_debug_component & component) \
#define RTL819x_DEBUG #define RTL819x_DEBUG
#ifdef RTL819x_DEBUG #ifdef RTL819x_DEBUG
#define assert(expr) \
if (!(expr)) { \
printk( "Assertion failed! %s,%s,%s,line=%d\n", \
#expr,__FILE__,__FUNCTION__,__LINE__); \
}
//wb added to debug out data buf //wb added to debug out data buf
//if you want print DATA buffer related BA, please set ieee80211_debug_level to DATA|BA //if you want print DATA buffer related BA, please set ieee80211_debug_level to DATA|BA
#define RT_DEBUG_DATA(level, data, datalen) \ #define RT_DEBUG_DATA(level, data, datalen) \
...@@ -174,7 +169,6 @@ do { if(rt_global_debug_component & component) \ ...@@ -174,7 +169,6 @@ do { if(rt_global_debug_component & component) \
} \ } \
} while (0) } while (0)
#else #else
#define assert(expr) do {} while (0)
#define RT_DEBUG_DATA(level, data, datalen) do {} while(0) #define RT_DEBUG_DATA(level, data, datalen) do {} while(0)
#endif /* RTL8169_DEBUG */ #endif /* RTL8169_DEBUG */
......
...@@ -978,7 +978,7 @@ static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev, ...@@ -978,7 +978,7 @@ static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
u8 queue_index = tcb_desc->queue_index; u8 queue_index = tcb_desc->queue_index;
/* shall not be referred by command packet */ /* shall not be referred by command packet */
assert(queue_index != TXCMD_QUEUE); BUG_ON(queue_index == TXCMD_QUEUE);
if (priv->bHwRadioOff || (!priv->up)) if (priv->bHwRadioOff || (!priv->up))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment