Skip to content

Commit

Permalink
rtlwifi: pass rx setup error code to caller
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Oct 24, 2012
1 parent 290eddc commit 0c7e920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rtlwifi/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c7e920

Please sign in to comment.