aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2004-05-24 18:31:56 +0000
committerMaxime Henrion <mux@FreeBSD.org>2004-05-24 18:31:56 +0000
commit670f5d73a070d3abecaaede1134e129813bef9df (patch)
treef74d14e708f666f51d9d85fb1b296dccbcb7034a /sys/dev/fxp
parentef77fe1a5b9094f0f810497e3768eb3e3d41649f (diff)
Notes
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c4
1 files changed, 2 insertions, 2 deletions
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);