File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
drivers/net/wireless/realtek/rtlwifi Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -739,11 +739,8 @@ static int _rtl_usb_receive(struct ieee80211_hw *hw)
739
739
for (i = 0 ; i < rtlusb -> rx_urb_num ; i ++ ) {
740
740
err = - ENOMEM ;
741
741
urb = usb_alloc_urb (0 , GFP_KERNEL );
742
- if (!urb ) {
743
- RT_TRACE (rtlpriv , COMP_USB , DBG_EMERG ,
744
- "Failed to alloc URB!!\n" );
742
+ if (!urb )
745
743
goto err_out ;
746
- }
747
744
748
745
err = _rtl_prep_rx_urb (hw , rtlusb , urb , GFP_KERNEL );
749
746
if (err < 0 ) {
@@ -907,15 +904,12 @@ static void _rtl_tx_complete(struct urb *urb)
907
904
static struct urb * _rtl_usb_tx_urb_setup (struct ieee80211_hw * hw ,
908
905
struct sk_buff * skb , u32 ep_num )
909
906
{
910
- struct rtl_priv * rtlpriv = rtl_priv (hw );
911
907
struct rtl_usb * rtlusb = rtl_usbdev (rtl_usbpriv (hw ));
912
908
struct urb * _urb ;
913
909
914
910
WARN_ON (NULL == skb );
915
911
_urb = usb_alloc_urb (0 , GFP_ATOMIC );
916
912
if (!_urb ) {
917
- RT_TRACE (rtlpriv , COMP_USB , DBG_EMERG ,
918
- "Can't allocate URB for bulk out!\n" );
919
913
kfree_skb (skb );
920
914
return NULL ;
921
915
}
You can’t perform that action at this time.
0 commit comments