From: Bruno Randolf Date: Wed, 16 Jun 2010 10:11:46 +0000 (+0900) Subject: ath5k: unify rx descriptor error handling X-Git-Tag: MMI-PSA29.97-13-9~23092^2~107^2~205 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b16062facbf9952d9d69621a6bf87e1188973ccd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath5k: unify rx descriptor error handling There is no reason for a special handling (return) here, just break like we do with the checks before. Signed-off-by: Bruno Randolf Acked-by: Bob Copeland Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 5479f85fcd35..d9df11490ab6 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -1937,8 +1937,7 @@ ath5k_tasklet_rx(unsigned long data) else if (unlikely(ret)) { ATH5K_ERR(sc, "error in processing rx descriptor\n"); sc->stats.rxerr_proc++; - spin_unlock(&sc->rxbuflock); - return; + break; } sc->stats.rx_all_count++;