From: Stephen Warren Date: Wed, 7 Dec 2011 20:58:27 +0000 (-0700) Subject: ASoC: Refactor some conditions and loop in soc_bind_dai_link() X-Git-Tag: v3.3-rc1~14^2~165 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2610ab7767bba916f65094d71cfed3b8281cba08;p=pandora-kernel.git ASoC: Refactor some conditions and loop in soc_bind_dai_link() Transform some loops from: for_each(x) { if (f(x)) { work_on(x); } } to new structure: for_each(x) { if (!f(x)) continue; work_on(x); } This will allow future modification of f(x) with less impact to the code. Signed-off-by: Stephen Warren Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed