summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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);
OpenPOWER on IntegriCloud