Date: Fri, 5 Jun 2009 23:35:43 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193547 - head/sys/geom Message-ID: <200906052335.n55NZiAk041591@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906052335.n55NZiAk041591>