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)
commita595238bad3d11b26d00bbda4ccbd38fe107cd1e
tree43e8fa338345eee2705534c7d37aa0186e1d61da
parent1f9099b41723c90bd2ff8238482e8598ef21a621
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