From 670f5d73a070d3abecaaede1134e129813bef9df Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Mon, 24 May 2004 18:31:56 +0000 Subject: Change a if (...) panic() to a KASSERT(). --- sys/dev/fxp/if_fxp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index d130c1dbaf5cb..1f04d3a83b06d 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -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); -- cgit v1.3