summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-12-02 16:30:21 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-12-02 16:30:21 +0000
commitc25db53ca539906548a76a963948ff57e6706d53 (patch)
treeb4315ef7dbabbc14727b2c037cd4eb0fce2623ab /sys/kern
parent8eb4b40d9810bf1d1558ba7b2a3628b11e0cac59 (diff)
downloadFreeBSD-src-c25db53ca539906548a76a963948ff57e6706d53.zip
FreeBSD-src-c25db53ca539906548a76a963948ff57e6706d53.tar.gz
Remove check for attached state.
sc = devclass_get_softc(devclass, unit); doesn't return NULL during attach anymore, and produces the sc, identical to (for devclass_get_unit(devclass, unit) != NULL that is): sc = device_get_softc(devclass_get_unit(devclass, unit)); Reviewed-by: dfr
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_bus.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index eff46ad..f144e60 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));
}
OpenPOWER on IntegriCloud