ASoC: rsnd: tidyup original for_each_rsnd_xxx macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 12 Feb 2014 01:15:51 +0000 (17:15 -0800)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:04 +0000 (11:13 +0100)
commit9efe07b7cb2c466584b0ae50a4a47ae55a002089
treee26b49dcc7ae78edc99b1b05f5bee84b17859129
parent7ef66d375fbb84ebab59c3ca3a4902a83f997bb7
ASoC: rsnd: tidyup original for_each_rsnd_xxx macro

Current for_each_rsnd_xxx macro will read out-of-array's
memory after last loop operation.
It was not good C language operation, and the binary which was
compiled by (at least) gcc 4.8.1 is broken
This patch tidyup these issues

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 00463c113b6ba6506b4f1ebb9b3c5dd249f8750f)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/sh/rcar/adg.c
sound/soc/sh/rcar/rsnd.h