diff options
author | mux <mux@FreeBSD.org> | 2004-05-24 18:31:56 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2004-05-24 18:31:56 +0000 |
commit | 34e1843cde92160b789d42513c51c9f151500916 (patch) | |
tree | f74d14e708f666f51d9d85fb1b296dccbcb7034a /sys/dev/fxp | |
parent | 3582079dd624af5748a606e7e3d1aec8abff766e (diff) | |
download | FreeBSD-src-34e1843cde92160b789d42513c51c9f151500916.zip FreeBSD-src-34e1843cde92160b789d42513c51c9f151500916.tar.gz |
Change a if (...) panic() to a KASSERT().
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index d130c1d..1f04d3a 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); |