Commit 0c7e9207 authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville

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: default avatarChristian Lamparter <chunkeey@googlemail.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 290eddc4
...@@ -673,7 +673,7 @@ static int rtl_usb_start(struct ieee80211_hw *hw) ...@@ -673,7 +673,7 @@ static int rtl_usb_start(struct ieee80211_hw *hw)
set_hal_start(rtlhal); set_hal_start(rtlhal);
/* Start bulk IN */ /* Start bulk IN */
_rtl_usb_receive(hw); err = _rtl_usb_receive(hw);
} }
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment