diff options
author | 1996-07-02 22:21:24 +0000 | |
---|---|---|
committer | 1996-07-02 22:21:24 +0000 | |
commit | 56fa8c84be4a494f9afe84f74fa9c16dfc524e8a (patch) | |
tree | 57c67d5757a39c3a1502ce000a3e39e12a555633 | |
parent | support FSTATE_STAR by repetition (diff) | |
download | wireguard-openbsd-56fa8c84be4a494f9afe84f74fa9c16dfc524e8a.tar.xz wireguard-openbsd-56fa8c84be4a494f9afe84f74fa9c16dfc524e8a.zip |
pretty
-rw-r--r-- | sys/kern/subr_autoconf.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 62f0da22a53..7ed405bf3cc 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_autoconf.c,v 1.9 1996/07/02 06:51:59 niklas Exp $ */ +/* $OpenBSD: subr_autoconf.c,v 1.10 1996/07/02 22:21:24 deraadt Exp $ */ /* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */ /* @@ -373,7 +373,7 @@ config_attach(parent, match, aux, print) * cfdata for this device. */ for (t = allcftables.tqh_first; t; t = t->list.tqe_next) { - for (cf = t->tab; cf->cf_driver; cf++) + for (cf = t->tab; cf->cf_driver; cf++) if (cf->cf_driver == cd && cf->cf_unit == dev->dv_unit) { if (cf->cf_fstate == FSTATE_NOTFOUND) cf->cf_fstate = FSTATE_FOUND; @@ -612,24 +612,21 @@ attach_loadable(parentname, parentunit, cftable) TAILQ_INSERT_TAIL(&allcftables, cftable, list); - for(d = alldevs.tqh_first; - d != NULL; - d = d->dv_list.tqe_next) { + for(d = alldevs.tqh_first; d != NULL; d = d->dv_list.tqe_next) { struct cfdriver *drv = d->dv_cfdata->cf_driver; - if ((!strcmp(parentname, drv->cd_name)) - && ((parentunit == -1) || (parentunit == d->dv_unit))) { + if (strcmp(parentname, drv->cd_name) == NULL && + (parentunit == -1 || parentunit == d->dv_unit)) { int s; s = splhigh(); /* ??? */ - found |= (*d->dv_cfdata->cf_attach->ca_reprobe)(d, &(cftable->tab[0])); + found |= (*d->dv_cfdata->cf_attach->ca_reprobe)(d, + &(cftable->tab[0])); splx(s); } } - if (!found) TAILQ_REMOVE(&allcftables, cftable, list); - return(found); } |