summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2012-10-15 00:15:48 +0400
committerJohn W. Linville <linville@tuxdriver.com>2012-10-24 21:18:07 +0400
commit0c7e92075f6e61bfc90ec2664c034b04bc157315 (patch)
tree5cb6a3e3adee6e3ba26d3b64f19f0812306554a0 /drivers/net
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')
-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 030beb45d8b0..e3ea4b346889 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;