diff options
| author | Imre Vadász <ivadasz@FreeBSD.org> | 2016-07-30 19:03:32 +0000 |
|---|---|---|
| committer | Imre Vadász <ivadasz@FreeBSD.org> | 2016-07-30 19:03:32 +0000 |
| commit | a3c0e7f2fbfe274ef54b5db0d9141397fa7d36ca (patch) | |
| tree | f85650389294c91ac572c1c9317e5bc73a93a2a3 /sys/dev | |
| parent | aafbb33897d6215934ffdcc0946c3242ff811ac5 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/iwm/if_iwm.c | 4 |
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)); |
