diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index eff46ad31261..f144e6028251 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -436,9 +436,6 @@ devclass_get_softc(devclass_t dc, int unit) if (!dev) return (NULL); - if (device_get_state(dev) < DS_ATTACHED) - return (NULL); - return (device_get_softc(dev)); }