ASoC: soc-core: don't use for_each_card_links_safe() at snd_soc_find_dai_link()

It doesn't removes list during loop at snd_soc_find_dai_link().
We don't need to use _safe loop.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87imr9ahp9.wl-kuninori.morimoto.gx@renesas.com
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2019-08-07 10:30:41 +09:00 committed by Mark Brown
parent 5b99a0aad0
commit 4284906450
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -817,11 +817,11 @@ struct snd_soc_dai_link *snd_soc_find_dai_link(struct snd_soc_card *card,
int id, const char *name,
const char *stream_name)
{
struct snd_soc_dai_link *link, *_link;
struct snd_soc_dai_link *link;
lockdep_assert_held(&client_mutex);
for_each_card_links_safe(card, link, _link) {
for_each_card_links(card, link) {
if (link->id != id)
continue;