Simplify.

This commit is contained in:
Pawel Jakub Dawidek 2009-06-05 23:35:43 +00:00
parent b8ee2a22a9
commit cb9b72ce4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193547

View File

@ -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();