Skip to contentSkip to conversation

ath5k: Fix reporting of RX dma stop failure

PATCH In review Nick Kossifidis 2 participants 2 messages Dec 3, 2010 Atheros ATH5K wireless driver

lore
Share & tools
lore

Nick Kossifidis

author maintainer
#0 lore raw

PATCH 4/6 ath5k: Fix reporting of RX dma stop failure

* Correctly report failure to stop RX DMA

---
 drivers/net/wireless/ath/ath5k/dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath5k/dma.c +1 -1
index 82541fe..0064be7 100644
@@ -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 on v1 4/6
#1 lore raw
Quoted 22 lines · Nick Kossifidis

 * Correctly report failure to stop RX DMA

---
 drivers/net/wireless/ath/ath5k/dma.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath5k/dma.c +1 -1
index 82541fe..0064be7 100644
@@ -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");