aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_subr.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2009-06-05 23:35:43 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2009-06-05 23:35:43 +0000
commitcb9b72ce4a9fd936fd53111b7aba5a0be7df7e04 (patch)
tree42d0533153a06bb8a9d732b60f4053608ed3bdb5 /sys/geom/geom_subr.c
parentb8ee2a22a939521acc83563562e33886b6cbfee8 (diff)
downloadsrc-cb9b72ce4a9fd936fd53111b7aba5a0be7df7e04.tar.gz
src-cb9b72ce4a9fd936fd53111b7aba5a0be7df7e04.zip
Simplify.
Notes
Notes: svn path=/head/; revision=193547
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r--sys/geom/geom_subr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index c3ab15acb777..56b323361a13 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();