]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sta32x: shortcut the for loop to get ir and mcs
authorAxel Lin <axel.lin@gmail.com>
Sun, 14 Aug 2011 03:31:04 +0000 (11:31 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Aug 2011 13:54:11 +0000 (22:54 +0900)
commit3ad00c659d74c0d95c255403a064c3b677329f7f
tree43e8fa338345eee2705534c7d37aa0186e1d61da
parent4a7922abfe13d61d74e6623aef54d0b18c9a9cd5
ASoC: sta32x: shortcut the for loop to get ir and mcs

There is exactly one match or no match at all during the for loop iteration,
thus we can break from the for loop once a match is found.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sta32x.c