Skip to content

Commit f0e134a

Browse files
mickflemmlinvjw
authored andcommitted
ath5k: Fix reporting of RX dma stop failure
* Correctly report failure to stop RX DMA Signed-off-by: Nick Kossifidis <[email protected]> Tested-by: Sedat Dilek <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 344b54b commit f0e134a

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/ath/ath5k

1 file changed

+1
-1
lines changed

drivers/net/wireless/ath/ath5k/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah)
7272
i--)
7373
udelay(100);
7474

75-
if (i)
75+
if (!i)
7676
ATH5K_DBG(ah->ah_sc, ATH5K_DEBUG_DMA,
7777
"failed to stop RX DMA !\n");
7878

0 commit comments

Comments
 (0)