diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-09-28 09:01:29 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-28 17:01:46 +0100 |
commit | ce820145a9ec04797a417fcb01b8ff02dcfd9846 (patch) | |
tree | 2622eb15f2d07ec5ef0885dafce238e395f9c774 | |
parent | 140a4532cdb8c44a664e7e871ea5dbaa4c2829bc (diff) | |
download | linux-ce820145a9ec04797a417fcb01b8ff02dcfd9846.tar.bz2 |
ASoC: soc-pcm: remove unneeded dev_err() for snd_soc_dai_startup()
snd_soc_dai_startup() itself will indicate error message,
thus, soc_pcm_open() don't need to handle it.
This patch removes it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87eemmbwmy.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/soc-pcm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 7f3e44918f19..070fb71fc6f6 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -729,12 +729,8 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) /* startup the audio subsystem */ for_each_rtd_dais(rtd, i, dai) { ret = snd_soc_dai_startup(dai, substream); - if (ret < 0) { - dev_err(dai->dev, - "ASoC: can't open DAI %s: %d\n", - dai->name, ret); + if (ret < 0) goto err; - } if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) dai->tx_mask = 0; |