]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: remove unneeded dai_link check from snd_soc_remove_dai_link()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 20 Aug 2019 05:04:58 +0000 (14:04 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 21 Aug 2019 12:11:37 +0000 (13:11 +0100)
commit2e9c41845da81d9164d281a025783776c8b9df77
tree0bbe6fadc036da65bc298f12649bb71f603694f9
parentd044bdae0b99bc516dab3bbb90d1775b6d41afb2
ASoC: soc-core: remove unneeded dai_link check from snd_soc_remove_dai_link()

snd_soc_remove_dai_link() has card connected dai_link check. but
1) we need to call list_del() anyway,
   because it is "remove" function,
2) It is doing many thing for this card / dai_link already
   before checking dai_link.

This patch removes poinless dai_link check

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/875zms1ldm.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c