Skip to contentSkip to conversation

rtlwifi: pass rx setup error code to caller

PATCH In review Christian Lamparter 2 participants 2 messages Oct 14, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtlwifi: pass rx setup error code to caller

If _rtl_usb_receive fails, the device is probably not ready. Hence the error code should be passed to the caller, so it can react accordingly and notify the user.

---
 rtlwifi/usb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rtlwifi/usb.c +1 -1
index d7744e1..696d29f 100644
@@ -682,7 +682,7 @@ static int rtl_usb_start(struct ieee80211_hw *hw)
 		set_hal_start(rtlhal);
 
 		/* Start bulk IN */
-		_rtl_usb_receive(hw);
+		err = _rtl_usb_receive(hw);
 	}
 
 	return err;
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Christian Lamparter

If _rtl_usb_receive fails, the device is probably not ready. Hence the error code should be passed to the caller, so it can react accordingly and notify the user.

---
  rtlwifi/usb.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
rtlwifi/usb.c +1 -1
index d7744e1..696d29f 100644
@@ -682,7 +682,7 @@ static int rtl_usb_start(struct ieee80211_hw *hw)
  		set_hal_start(rtlhal);
 
  		/* Start bulk IN */
-		_rtl_usb_receive(hw);
+		err = _rtl_usb_receive(hw);
  	}
 
  	return err;