Change a if (...) panic() to a KASSERT().

This commit is contained in:
Maxime Henrion 2004-05-24 18:31:56 +00:00
parent ef77fe1a5b
commit 670f5d73a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129671

View File

@ -864,8 +864,8 @@ fxp_release(struct fxp_softc *sc)
int i;
mtx_assert(&sc->sc_mtx, MA_NOTOWNED);
if (sc->ih)
panic("fxp_release() called with intr handle still active");
KASSERT(sc->ih == NULL,
("fxp_release() called with intr handle still active"));
if (sc->miibus)
device_delete_child(sc->dev, sc->miibus);
bus_generic_detach(sc->dev);