mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 18:21:49 +00:00
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 <chunkeey@googlemail.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
290eddc4b3
commit
0c7e92075f
@ -673,7 +673,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;
|
||||
|
Loading…
Reference in New Issue
Block a user