From owner-svn-src-head@FreeBSD.ORG Fri Jun 5 23:35:44 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E2F8106564A; Fri, 5 Jun 2009 23:35:44 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8998FC13; Fri, 5 Jun 2009 23:35:44 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n55NZiIm041592; Fri, 5 Jun 2009 23:35:44 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n55NZiAk041591; Fri, 5 Jun 2009 23:35:44 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <200906052335.n55NZiAk041591@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Fri, 5 Jun 2009 23:35:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193547 - head/sys/geom X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 23:35:44 -0000 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();