aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bhnd/cores
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2016-09-17 22:18:32 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2016-09-17 22:18:32 +0000
commit315cf4daba354a085a36108ee65ea69a7a9742d7 (patch)
treef8296517884194281ae3c9235d7bb63e3c5a6d94 /sys/dev/bhnd/cores
parentb0c554c3a50b73bddfb059bd4bd8b85944efa265 (diff)
Notes
Diffstat (limited to 'sys/dev/bhnd/cores')
-rw-r--r--sys/dev/bhnd/cores/chipc/chipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/bhnd/cores/chipc/chipc.c b/sys/dev/bhnd/cores/chipc/chipc.c
index b57ceb4d6779e..b5fe97eb7971f 100644
--- a/sys/dev/bhnd/cores/chipc/chipc.c
+++ b/sys/dev/bhnd/cores/chipc/chipc.c
@@ -1261,8 +1261,7 @@ chipc_disable_sprom_pins(struct chipc_softc *sc)
return;
CHIPC_LOCK_ASSERT(sc, MA_OWNED);
- KASSERT(sc->sprom_refcnt != 0, ("sprom pins already disabled"));
- KASSERT(sc->sprom_refcnt == 1, ("sprom pins in use"));
+ KASSERT(sc->sprom_refcnt == 0, ("sprom pins in use"));
cctrl = bhnd_bus_read_4(sc->core, CHIPC_CHIPCTRL);