summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rtlwifi/usb.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2012-10-14 20:15:48 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2012-10-24 17:18:07 (GMT)
commit0c7e92075f6e61bfc90ec2664c034b04bc157315 (patch)
tree5cb6a3e3adee6e3ba26d3b64f19f0812306554a0 /drivers/net/wireless/rtlwifi/usb.c
parent290eddc4b3661dc4dfa95d199e0be5788928b3b1 (diff)
downloadlinux-0c7e92075f6e61bfc90ec2664c034b04bc157315.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/usb.c')
-rw-r--r--drivers/net/wireless/rtlwifi/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c
index 030beb4..e3ea4b3 100644
--- a/drivers/net/wireless/rtlwifi/usb.c
+++ b/drivers/net/wireless/rtlwifi/usb.c
@@ -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;