diff --git a/sys/dev/pad/pad.c b/sys/dev/pad/pad.c index dd487c8e9f33..fa24aff21b07 100644 --- a/sys/dev/pad/pad.c +++ b/sys/dev/pad/pad.c @@ -239,7 +239,6 @@ static int pad_detach(device_t self, int flags) { struct pad_softc *sc = device_private(self); - int cmaj, mn; int error; KASSERT(KERNEL_LOCKED_P()); @@ -252,10 +251,6 @@ pad_detach(device_t self, int flags) if (error) return error; - cmaj = cdevsw_lookup_major(&pad_cdevsw); - mn = device_unit(sc->sc_dev); - vdevgone(cmaj, mn, mn, VCHR); - pmf_device_deregister(sc->sc_dev); callout_destroy(&sc->sc_pcallout);