ath5k: Fix reporting of RX dma stop failure
Nick Kossifidis
maintainerPATCH 4/6 ath5k: Fix reporting of RX dma stop failure
* Correctly report failure to stop RX DMA
Signed-off-by Nick Kossifidis <[email protected]>
--- drivers/net/wireless/ath/ath5k/dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath5k/dma.c +1 -1
@@ -72,7 +72,7 @@ static int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah) i--)udelay (100 ); -if (i) +if (!i)ATH5K_DBG (ah->ah_sc,ATH5K_DEBUG_DMA ,"failed to stop RX DMA !\n" );
Tested-by Sedat Dilek <[email protected]>
Quoted 22 lines · Nick Kossifidis
* Correctly report failure to stop RX DMA
Signed-off-by Nick Kossifidis <[email protected]>---
drivers/net/wireless/ath/ath5k/dma.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/net/wireless/ath/ath5k/dma.c +1
-1@@ -72,7 +72,7 @@ static int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah) i--) udelay(100); - if (i) + if (!i) ATH5K_DBG(ah->ah_sc, ATH5K_DEBUG_DMA, "failed to stop RX DMA !\n");