OSDN Git Service

ASoC: soc-core: tidyup soc_probe_aux_devices()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 6 Nov 2019 01:08:06 +0000 (10:08 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 12 Nov 2019 18:42:03 +0000 (18:42 +0000)
commit74bd3f92d0d173fe4c0a12cf736c505ceb15576a
treefd8e8de5eceebc50db8378614ffd35e90bdd4cc4
parented90c013a773b5f9e06089d0eed6714761152d14
ASoC: soc-core: tidyup soc_probe_aux_devices()

snd_soc_bind_card() is calling many initialize functions
for each card / link / dai / aux etc, etc, etc...
When error happen, the message is indicated at snd_soc_bind_card(),
not at each functions.
But, only soc_probe_aux_devices() case is indicating error at functions,
not at snd_soc_bind_card().
It is not an issue, but unbalanced.

This patch moves error message to snd_soc_bind_card().
Also avoids deep-nested code.

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