ASoC: soc.h: remove for_each_rtd_dais_rollback()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 29 Sep 2020 04:31:11 +0000 (13:31 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 16:44:13 +0000 (16:44 +0000)
commit 140a4532cdb8 ("ASoC: soc-pcm: add soc_pcm_clean() and call it
from soc_pcm_open/close()") uses soc_pcm_clean() and then
for_each_rtd_dais_rollback() is no longer used.
This patch removes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87o8lpgqbp.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h

index 3b038c5..7541c71 100644 (file)
@@ -1196,8 +1196,6 @@ struct snd_soc_pcm_runtime {
             ((i) < (rtd)->num_cpus + (rtd)->num_codecs) &&             \
                     ((dai) = (rtd)->dais[i]);                          \
             (i)++)
-#define for_each_rtd_dais_rollback(rtd, i, dai)                \
-       for (; (--(i) >= 0) && ((dai) = (rtd)->dais[i]);)
 
 void snd_soc_close_delayed_work(struct snd_soc_pcm_runtime *rtd);