mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 03:39:36 +07:00
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87d026bwms.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ce820145a9
commit
bcae16317b
@ -614,20 +614,12 @@ static int soc_pcm_components_open(struct snd_pcm_substream *substream)
|
||||
|
||||
for_each_rtd_components(rtd, i, component) {
|
||||
ret = snd_soc_component_module_get_when_open(component, substream);
|
||||
if (ret < 0) {
|
||||
dev_err(component->dev,
|
||||
"ASoC: can't get module %s\n",
|
||||
component->name);
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
|
||||
ret = snd_soc_component_open(component, substream);
|
||||
if (ret < 0) {
|
||||
dev_err(component->dev,
|
||||
"ASoC: can't open component %s: %d\n",
|
||||
component->name, ret);
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user