diff options
author | Joe Perches <joe@perches.com> | 2012-01-04 22:40:39 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:06:06 -0500 |
commit | 884dd24499df823f5c167223c7ae93bd764e2e4f (patch) | |
tree | 6a4b8c610b4b3644d868ebb758d89e1387e3ecad /drivers/net/wireless/rtlwifi/usb.c | |
parent | 3084f3b65c178228bece6f7b166a19f3e38a75d4 (diff) |
rtlwifi: Neaten RT_ASSERT, RT_TRACE, RTPRINT, RT_PRINT_DATA macros
Make the macros a bit more readable.
Use do {...} while (0) without terminating semicolons.
Add missing terminating semicolon to a few uses.
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/usb.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index e956fa71d040..1b8e68e70f8a 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c | |||
@@ -414,7 +414,7 @@ static struct sk_buff *_rtl_prep_rx_urb(struct ieee80211_hw *hw, | |||
414 | gfp_mask); | 414 | gfp_mask); |
415 | if (!skb) { | 415 | if (!skb) { |
416 | RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG, | 416 | RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG, |
417 | ("Failed to __dev_alloc_skb!!\n")) | 417 | ("Failed to __dev_alloc_skb!!\n")); |
418 | return ERR_PTR(-ENOMEM); | 418 | return ERR_PTR(-ENOMEM); |
419 | } | 419 | } |
420 | 420 | ||
@@ -632,14 +632,14 @@ static int _rtl_usb_receive(struct ieee80211_hw *hw) | |||
632 | urb = usb_alloc_urb(0, GFP_KERNEL); | 632 | urb = usb_alloc_urb(0, GFP_KERNEL); |
633 | if (!urb) { | 633 | if (!urb) { |
634 | RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG, | 634 | RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG, |
635 | ("Failed to alloc URB!!\n")) | 635 | ("Failed to alloc URB!!\n")); |
636 | goto err_out; | 636 | goto err_out; |
637 | } | 637 | } |
638 | 638 | ||
639 | skb = _rtl_prep_rx_urb(hw, rtlusb, urb, GFP_KERNEL); | 639 | skb = _rtl_prep_rx_urb(hw, rtlusb, urb, GFP_KERNEL); |
640 | if (IS_ERR(skb)) { | 640 | if (IS_ERR(skb)) { |
641 | RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG, | 641 | RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG, |
642 | ("Failed to prep_rx_urb!!\n")) | 642 | ("Failed to prep_rx_urb!!\n")); |
643 | err = PTR_ERR(skb); | 643 | err = PTR_ERR(skb); |
644 | goto err_out; | 644 | goto err_out; |
645 | } | 645 | } |