Commit bcae1631 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: soc-pcm: remove unneeded dev_err() for snd_soc_component_module/open()

snd_soc_component_module_get(), snd_soc_component_open() itself will
indicate error message, thus, soc_pcm_components_open() don't need to
handle it.
This patch removes these.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87d026bwms.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent ce820145
...@@ -614,21 +614,13 @@ static int soc_pcm_components_open(struct snd_pcm_substream *substream) ...@@ -614,21 +614,13 @@ static int soc_pcm_components_open(struct snd_pcm_substream *substream)
for_each_rtd_components(rtd, i, component) { for_each_rtd_components(rtd, i, component) {
ret = snd_soc_component_module_get_when_open(component, substream); ret = snd_soc_component_module_get_when_open(component, substream);
if (ret < 0) { if (ret < 0)
dev_err(component->dev,
"ASoC: can't get module %s\n",
component->name);
break; break;
}
ret = snd_soc_component_open(component, substream); ret = snd_soc_component_open(component, substream);
if (ret < 0) { if (ret < 0)
dev_err(component->dev,
"ASoC: can't open component %s: %d\n",
component->name, ret);
break; break;
} }
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment