diff options
author | Joe Perches <joe@perches.com> | 2012-01-04 22:40:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:07:40 -0500 |
commit | 9d833ed752e91c71792dd8ebfd0f865e6a568a37 (patch) | |
tree | a0b03e38ee9a2186523df595c18e3839ab603c1f /drivers/net/wireless/rtlwifi/rtl8192cu | |
parent | 4c48869f5d6e4ee4a773fd67a01e1b934faa57f8 (diff) |
rtlwifi: Convert RT_ASSERT macro to use ##__VA_ARGS__
Consolidate printks to avoid possible message interleaving
and reduce the object size.
Remove unnecessary RT_ASSERT parentheses.
Align arguments.
Coalesce formats.
Remove unnecessary __func__ use as the macro uses it.
$ size drivers/net/wireless/rtlwifi/built-in.o*
text data bss dec hex filename
588901 55333 127216 771450 bc57a drivers/net/wireless/rtlwifi/built-in.o.new
590002 55333 127560 772895 bcb1f drivers/net/wireless/rtlwifi/built-in.o.old
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index de1542f14856..ae38bc52a716 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | |||
@@ -1984,8 +1984,9 @@ void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
1984 | u4b_ac_param); | 1984 | u4b_ac_param); |
1985 | break; | 1985 | break; |
1986 | default: | 1986 | default: |
1987 | RT_ASSERT(false, ("SetHwReg8185(): invalid" | 1987 | RT_ASSERT(false, |
1988 | " aci: %d !\n", e_aci)); | 1988 | "SetHwReg8185(): invalid aci: %d !\n", |
1989 | e_aci); | ||
1989 | break; | 1990 | break; |
1990 | } | 1991 | } |
1991 | if (rtlusb->acm_method != eAcmWay2_SW) | 1992 | if (rtlusb->acm_method != eAcmWay2_SW) |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c b/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c index 9f09844d7d50..943f3d49d1f2 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | |||
@@ -428,7 +428,7 @@ void rtl92c_set_qos(struct ieee80211_hw *hw, int aci) | |||
428 | rtl_write_dword(rtlpriv, REG_EDCA_VO_PARAM, u4b_ac_param); | 428 | rtl_write_dword(rtlpriv, REG_EDCA_VO_PARAM, u4b_ac_param); |
429 | break; | 429 | break; |
430 | default: | 430 | default: |
431 | RT_ASSERT(false, ("invalid aci: %d !\n", aci)); | 431 | RT_ASSERT(false, "invalid aci: %d !\n", aci); |
432 | break; | 432 | break; |
433 | } | 433 | } |
434 | } | 434 | } |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c index b875af75b893..aca0fd5d1165 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | |||
@@ -244,8 +244,8 @@ u16 rtl8192cu_mq_to_hwq(__le16 fc, u16 mac80211_queue_index) | |||
244 | break; | 244 | break; |
245 | default: | 245 | default: |
246 | hw_queue_index = RTL_TXQ_BE; | 246 | hw_queue_index = RTL_TXQ_BE; |
247 | RT_ASSERT(false, ("QSLT_BE queue, skb_queue:%d\n", | 247 | RT_ASSERT(false, "QSLT_BE queue, skb_queue:%d\n", |
248 | mac80211_queue_index)); | 248 | mac80211_queue_index); |
249 | break; | 249 | break; |
250 | } | 250 | } |
251 | out: | 251 | out: |