ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 Jan 2017 04:23:29 +0000 (04:23 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 23 Jan 2017 15:11:42 +0000 (15:11 +0000)
commit90ffc1ecc500c04bf43a45d804bb151505c0d6a6
tree06ab126326765e22e26a66d5272d0694e2ee145c
parenta5de5b74a50113564a1e0850e2da96c37c35e55d
ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment

commit 5f222a292 ("ASoC: rsnd: use for_each_rsnd_mod_xxx() ...")
modifies rsnd_dai_call() to use for_each_rsnd_mod_arrays().

Current rsnd is incrementing iterator in rsnd_mod_next(),
but the iterator will indicate +1 position in for_each loop in
this case. Incremental position should be inside for()

Reported-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h