]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-topology: use for_each_component_dais() at remove_dai()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 20 Aug 2019 05:05:32 +0000 (14:05 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2019 17:31:38 +0000 (18:31 +0100)
commit1ebd8eeeeddddadebbb7217763fb8c012d7bcbd8
treec3cf55d4e1955b9bb09efc4a3ddbc2aacc946412
parentb269ace145a0f27922cdbc750498dd4d02102b04
ASoC: soc-topology: use for_each_component_dais() at remove_dai()

commit a61616de66ce5 ("ASoC: topology: fix oops/use-after-free case
with dai driver") fixups remove_dai() error, but it is using
list_for_each_entry() for component->dai_list.

We already have for_each_component_dais() macro for it.
Let's use exising method.

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