From: Nick Kossifidis Date: Fri, 3 Dec 2010 04:09:38 +0000 (+0200) Subject: ath5k: Fix reporting of RX dma stop failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f0e134a53ad95ba7a393b299ae56c9bdcaed8aec;p=linux-beck.git ath5k: Fix reporting of RX dma stop failure * Correctly report failure to stop RX DMA Signed-off-by: Nick Kossifidis Tested-by: Sedat Dilek Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c index 82541fec9f0e..0064be7ce5c9 100644 --- a/drivers/net/wireless/ath/ath5k/dma.c +++ b/drivers/net/wireless/ath/ath5k/dma.c @@ -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");