]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: dapm: Remove unnecessary loop
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 14 Jun 2013 11:16:52 +0000 (13:16 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 14 Jun 2013 11:34:10 +0000 (12:34 +0100)
commit58fee775b7a18a0174931af6174536560785d500
tree95765706c3793454c19a110d35abaabf12a2bdc6
parent6b75bf0c5b17d71c3b0568caaaaae73a22f83826
ASoC: dapm: Remove unnecessary loop

The condition 'i == item' is only true when, well, 'i' equals 'item'.
So just use 'item' directly as the index into the array.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c