diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-09-05 08:03:16 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-09 15:27:21 -0400 |
commit | 19ec477f168fb514b961de5ffdb02742153728e6 (patch) | |
tree | 7444adc223ddc659b87d9ba31d8e99ddd2d86721 /drivers/net/wireless/ath/ath9k/main.c | |
parent | 9019f646b2da436da557e58c3fe3a2dfda440a55 (diff) | |
download | lwn-19ec477f168fb514b961de5ffdb02742153728e6.tar.gz lwn-19ec477f168fb514b961de5ffdb02742153728e6.zip |
ath9k: Fix ath_startrecv()
Since ath_startrecv() doesn't return an error value,
cleanup the callsites.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 5d9f4d738d74..18e5e91cf7c9 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -225,15 +225,9 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start) unsigned long flags; ath9k_calculate_summary_state(sc, sc->cur_chan); - - if (ath_startrecv(sc) != 0) { - ath_err(common, "Unable to restart recv logic\n"); - return false; - } - + ath_startrecv(sc); ath9k_cmn_update_txpow(ah, sc->curtxpow, sc->cur_chan->txpower, &sc->curtxpow); - clear_bit(ATH_OP_HW_RESET, &common->op_flags); if (!sc->cur_chan->offchannel && start) { |