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>
Fri, 20 Jan 2017 12:46:32 +0000 (12:46 +0000)
commit826e83de58e3bb243b154380837c6506a0575395
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