summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-11-23 08:22:48 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-11-23 08:22:48 +0000
commit03b71bf0d3a40bcc4117e542679c2ae051eec328 (patch)
tree2b8978e2d2df146aa1a63f29c9537424888000da /sys/kern
parentfeefb687f7edc957c59ddae50402422086f60adf (diff)
indent
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_autoconf.c90
1 files changed, 45 insertions, 45 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 905c686ebbb..aab721b606e 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_autoconf.c,v 1.15 1997/02/03 03:04:22 downsj Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.16 1997/11/23 08:22:47 mickey Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@ -172,21 +172,22 @@ config_search(fn, parent, aux)
m.aux = aux;
m.indirect = parent && parent->dv_cfdata->cf_driver->cd_indirect;
m.pri = 0;
- for(t = allcftables.tqh_first; t; t = t->list.tqe_next){
- for (cf = t->tab; cf->cf_driver; cf++) {
- /*
- * Skip cf if no longer eligible, otherwise scan through
- * parents for one matching `parent', and try match function.
- */
- if (cf->cf_fstate == FSTATE_FOUND)
- continue;
- if (cf->cf_fstate == FSTATE_DNOTFOUND ||
- cf->cf_fstate == FSTATE_DSTAR)
- continue;
- for (p = cf->cf_parents; *p >= 0; p++)
- if (parent->dv_cfdata == &(t->tab)[*p])
- mapply(&m, cf);
- }
+ for(t = allcftables.tqh_first; t; t = t->list.tqe_next) {
+ for (cf = t->tab; cf->cf_driver; cf++) {
+ /*
+ * Skip cf if no longer eligible, otherwise scan
+ * through parents for one matching `parent',
+ * and try match function.
+ */
+ if (cf->cf_fstate == FSTATE_FOUND)
+ continue;
+ if (cf->cf_fstate == FSTATE_DNOTFOUND ||
+ cf->cf_fstate == FSTATE_DSTAR)
+ continue;
+ for (p = cf->cf_parents; *p >= 0; p++)
+ if (parent->dv_cfdata == &(t->tab)[*p])
+ mapply(&m, cf);
+ }
}
return (m.match);
}
@@ -212,25 +213,25 @@ config_scan(fn, parent)
indirect = parent && parent->dv_cfdata->cf_driver->cd_indirect;
for (t = allcftables.tqh_first; t; t = t->list.tqe_next) {
- for (cf = t->tab; cf->cf_driver; cf++) {
- /*
- * Skip cf if no longer eligible, otherwise scan through
- * parents for one matching `parent', and try match function.
- */
- if (cf->cf_fstate == FSTATE_FOUND)
- continue;
- if (cf->cf_fstate == FSTATE_DNOTFOUND ||
- cf->cf_fstate == FSTATE_DSTAR)
- continue;
- for (p = cf->cf_parents; *p >= 0; p++)
- if (parent->dv_cfdata == &(t->tab)[*p]) {
- if (indirect)
- match = config_make_softc(parent, cf);
- else
- match = cf;
- (*fn)(parent, match);
- }
- }
+ for (cf = t->tab; cf->cf_driver; cf++) {
+ /*
+ * Skip cf if no longer eligible, otherwise scan
+ * through parents for one matching `parent',
+ * and try match function.
+ */
+ if (cf->cf_fstate == FSTATE_FOUND)
+ continue;
+ if (cf->cf_fstate == FSTATE_DNOTFOUND ||
+ cf->cf_fstate == FSTATE_DSTAR)
+ continue;
+ for (p = cf->cf_parents; *p >= 0; p++)
+ if (parent->dv_cfdata == &(t->tab)[*p]) {
+ match = indirect?
+ config_make_softc(parent, cf) :
+ (void *)cf;
+ (*fn)(parent, match);
+ }
+ }
}
}
@@ -374,13 +375,14 @@ 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++)
- if (cf->cf_driver == cd && cf->cf_unit == dev->dv_unit) {
- if (cf->cf_fstate == FSTATE_NOTFOUND)
- cf->cf_fstate = FSTATE_FOUND;
- if (cf->cf_fstate == FSTATE_STAR)
- cf->cf_unit++;
- }
+ 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;
+ if (cf->cf_fstate == FSTATE_STAR)
+ cf->cf_unit++;
+ }
}
#if defined(__alpha__) || defined(hp300)
device_register(dev, aux);
@@ -492,9 +494,7 @@ haschild(dev)
{
struct device *d;
- 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) {
if (d->dv_parent == dev)
return(1);
}