diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-03-15 01:58:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-19 13:24:05 +0100 |
commit | 60adbd8fbf486214f4ae1946e61df69c3867e20b (patch) | |
tree | edcfbe34920733f794de46dcb72b74de1043600f /sound/soc/soc-pcm.c | |
parent | ASoC: don't indicate error message for snd_soc_[pcm_]dai_xxx() (diff) | |
download | linux-60adbd8fbf486214f4ae1946e61df69c3867e20b.tar.xz linux-60adbd8fbf486214f4ae1946e61df69c3867e20b.zip |
ASoC: don't indicate error message for snd_soc_[pcm_]component_xxx()
All snd_soc_component_xxx() and snd_soc_pcm_component_xxx() itself
indicate error message if failed.
Its caller doesn't need to indicate duplicated error message.
This patch removes it.
All snd_soc_component_xxx() indicate error message if failed.
Its caller doesn't need to indicate duplicated error message.
This patch removes it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/878s6puta6.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index ecf2bfa9640b..2df70ab851ea 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2781,11 +2781,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops); ret = snd_soc_pcm_component_new(rtd); - if (ret < 0) { - dev_err(rtd->dev, "ASoC: pcm constructor failed for dailink %s: %d\n", - rtd->dai_link->name, ret); + if (ret < 0) return ret; - } pcm->no_device_suspend = true; out: |