summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-03-15 09:58:28 +0900
committerMark Brown <broonie@kernel.org>2021-03-19 12:24:02 +0000
commite20c9c4f96d79aa48eb3649c57f1f2784f92b838 (patch)
treea9c810fdb5cd9f295d0af668821fefcef65d9f94 /sound/soc/soc-pcm.c
parent273db971cf833d62c9e2d9381d190e14b1cd3641 (diff)
downloadlinux-e20c9c4f96d79aa48eb3649c57f1f2784f92b838.tar.gz
linux-e20c9c4f96d79aa48eb3649c57f1f2784f92b838.tar.bz2
linux-e20c9c4f96d79aa48eb3649c57f1f2784f92b838.zip
ASoC: soc-pcm: don't indicate error message for soc_pcm_hw_free()
soc_pcm_hw_free() never fail, error message is not needed. We can't use void function for it, because it is used part of struct snd_pcm_ops :: hw_free. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87czw1utaj.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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 4a01a3925ab6..eb52f78ca053 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -1862,10 +1862,7 @@ static int dpcm_fe_dai_hw_free(struct snd_pcm_substream *substream)
dev_dbg(fe->dev, "ASoC: hw_free FE %s\n", fe->dai_link->name);
/* call hw_free on the frontend */
- err = soc_pcm_hw_free(substream);
- if (err < 0)
- dev_err(fe->dev,"ASoC: hw_free FE %s failed\n",
- fe->dai_link->name);
+ soc_pcm_hw_free(substream);
/* only hw_params backends that are either sinks or sources
* to this frontend DAI */