modules: Use PA_IDXSET_FOREACH wherever applicable.

Signed-off-by: Harsh Prateek Bora <harsh.bora@linaro.org>
This commit is contained in:
Harsh Prateek Bora 2012-05-29 17:58:11 +05:30 committed by David Henningsson
parent 0236977408
commit f38c1e9bf9
6 changed files with 9 additions and 9 deletions

View file

@ -67,7 +67,7 @@ static void load_null_sink_if_needed(pa_core *c, pa_sink *sink, struct userdata*
/* Loop through all sinks and check to see if we have *any*
* sinks. Ignore the sink passed in (if it's not null) */
for (target = pa_idxset_first(c->sinks, &idx); target; target = pa_idxset_next(c->sinks, &idx))
PA_IDXSET_FOREACH(target, c->sinks, idx)
if (!sink || target != sink)
break;