summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2017-04-14 02:24:02 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2017-04-14 02:24:02 +0000
commit857b699d7ece35f1b8d6bb7adc197fa9dec4796a (patch)
treed5ac4e5b9ccc31201afff3dc80edcb75219cee8b
parent9f5efe718fcf4a91b8a64c2192aed8fe84c4770b (diff)
downloadsrc-test2-857b699d7ece35f1b8d6bb7adc197fa9dec4796a.tar.gz
src-test2-857b699d7ece35f1b8d6bb7adc197fa9dec4796a.zip
Notes
-rw-r--r--sys/dev/ae/if_ae.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c
index 23ed1d89d3ef..0734335ca774 100644
--- a/sys/dev/ae/if_ae.c
+++ b/sys/dev/ae/if_ae.c
@@ -1696,7 +1696,7 @@ ae_stop_txmac(ae_softc_t *sc)
/*
* Wait for IDLE state.
*/
- for (i = 0; i < AE_IDLE_TIMEOUT; i--) {
+ for (i = 0; i < AE_IDLE_TIMEOUT; i++) {
val = AE_READ_4(sc, AE_IDLE_REG);
if ((val & (AE_IDLE_TXMAC | AE_IDLE_DMAREAD)) == 0)
break;