rtlwifi: pass rx setup error code to caller
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.
Signed-off-by Christian Lamparter <[email protected]>
--- rtlwifi/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rtlwifi/usb.c +1 -1
@@ -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
Quoted 9 lines · Christian Lamparter
If
_rtl_usb_receivefails, 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.Signed-off-by Christian Lamparter <[email protected]>--- rtlwifi/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by Larry Finger <[email protected]>
Quoted 15 lines
rtlwifi/usb.c +1
-1@@ -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;