diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2012-10-14 22:15:48 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-24 19:18:07 +0200 |
commit | 0c7e92075f6e61bfc90ec2664c034b04bc157315 (patch) | |
tree | 5cb6a3e3adee6e3ba26d3b64f19f0812306554a0 | |
parent | Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jber... (diff) | |
download | linux-0c7e92075f6e61bfc90ec2664c034b04bc157315.tar.xz linux-0c7e92075f6e61bfc90ec2664c034b04bc157315.zip |
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>
-rw-r--r-- | drivers/net/wireless/rtlwifi/usb.c | 2 |
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; |