]> 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)
commit189a3f35b4c0e293a3c98ea5b1cbad10a1fd6982
tree43e8fa338345eee2705534c7d37aa0186e1d61da
parent89570b76e2fd5a24e444d45ec5b59a4636a10f70
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