aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorImre Vadász <ivadasz@FreeBSD.org>2016-07-30 19:03:32 +0000
committerImre Vadász <ivadasz@FreeBSD.org>2016-07-30 19:03:32 +0000
commita3c0e7f2fbfe274ef54b5db0d9141397fa7d36ca (patch)
treef85650389294c91ac572c1c9317e5bc73a93a2a3 /sys/dev
parentaafbb33897d6215934ffdcc0946c3242ff811ac5 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/iwm/if_iwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c
index e611ddee31838..8d39c40044908 100644
--- a/sys/dev/iwm/if_iwm.c
+++ b/sys/dev/iwm/if_iwm.c
@@ -1310,8 +1310,8 @@ iwm_stop_device(struct iwm_softc *sc)
}
/* Wait for DMA channels to be idle */
- if (iwm_poll_bit(sc, IWM_FH_TSSR_TX_STATUS_REG, mask, mask,
- 5000) < 0) {
+ if (!iwm_poll_bit(sc, IWM_FH_TSSR_TX_STATUS_REG, mask, mask,
+ 5000)) {
device_printf(sc->sc_dev,
"Failing on timeout while stopping DMA channel: [0x%08x]\n",
IWM_READ(sc, IWM_FH_TSSR_TX_STATUS_REG));