diff options
author | pjd <pjd@FreeBSD.org> | 2009-06-05 23:35:43 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2009-06-05 23:35:43 +0000 |
commit | 6796cdb325ca0d7c20eff03fd55cd4e7e293c141 (patch) | |
tree | 42d0533153a06bb8a9d732b60f4053608ed3bdb5 /sys/geom/geom_subr.c | |
parent | c8a6c918cd03d30c2054f476b88c1cc4cce717e1 (diff) | |
download | FreeBSD-src-6796cdb325ca0d7c20eff03fd55cd4e7e293c141.zip FreeBSD-src-6796cdb325ca0d7c20eff03fd55cd4e7e293c141.tar.gz |
Simplify.
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r-- | sys/geom/geom_subr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index c3ab15a..56b3233 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -522,7 +522,6 @@ g_new_provider_event(void *arg, int flag) struct g_class *mp; struct g_provider *pp; struct g_consumer *cp; - int i; g_topology_assert(); if (flag == EV_CANCEL) @@ -536,11 +535,10 @@ g_new_provider_event(void *arg, int flag) LIST_FOREACH(mp, &g_classes, class) { if (mp->taste == NULL) continue; - i = 1; LIST_FOREACH(cp, &pp->consumers, consumers) if (cp->geom->class == mp) - i = 0; - if (!i) + break; + if (cp != NULL) continue; mp->taste(mp, pp, 0); g_topology_assert(); |