diff options
Diffstat (limited to 'sys/dev/ic/athn.c')
-rw-r--r-- | sys/dev/ic/athn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c index 205e5d0e027..601c25e61bb 100644 --- a/sys/dev/ic/athn.c +++ b/sys/dev/ic/athn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: athn.c,v 1.1 2009/11/14 16:55:11 damien Exp $ */ +/* $OpenBSD: athn.c,v 1.2 2009/11/15 10:25:27 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -2836,7 +2836,7 @@ athn_stop_tx_dma(struct athn_softc *sc, int qid) AR_WRITE(sc, AR_Q_TXD, 1 << qid); for (ntries = 0; ntries < 40; ntries++) { - if (athn_tx_pending(sc, qid)) + if (!athn_tx_pending(sc, qid)) break; DELAY(100); } @@ -2856,7 +2856,7 @@ athn_stop_tx_dma(struct athn_softc *sc, int qid) AR_CLRBITS(sc, AR_TIMER_MODE, AR_QUIET_TIMER_EN); for (ntries = 0; ntries < 40; ntries++) { - if (athn_tx_pending(sc, qid)) + if (!athn_tx_pending(sc, qid)) break; DELAY(100); } |