svn commit: r193547 - head/sys/geom
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Jun 5 23:35:44 UTC 2009
Author: pjd
Date: Fri Jun 5 23:35:43 2009
New Revision: 193547
URL: http://svn.freebsd.org/changeset/base/193547
Log:
Simplify.
Modified:
head/sys/geom/geom_subr.c
Modified: head/sys/geom/geom_subr.c
==============================================================================
--- head/sys/geom/geom_subr.c Fri Jun 5 23:27:27 2009 (r193546)
+++ head/sys/geom/geom_subr.c Fri Jun 5 23:35:43 2009 (r193547)
@@ -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();
More information about the svn-src-all
mailing list