ASoC: soc-pcm: add missing ret=0 at soc_pcm_open()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 1 Oct 2020 05:07:41 +0000 (14:07 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 1 Oct 2020 19:42:20 +0000 (20:42 +0100)
commit8e7875ae373a3690397c4e593629d3b9ad5ccf42
treebb7bdbcc5c530eaa255a0188cb6a3b0fc63a2e6c
parentcb2fce94c84e2c2798dca45aa00d1e03294fab95
ASoC: soc-pcm: add missing ret=0 at soc_pcm_open()

commit 140a4532cdb8c ("ASoC: soc-pcm: add soc_pcm_clean() and call it
from soc_pcm_open/close()") switched to use soc_pcm_clean() at
soc_pcm_open().

But it removed "return 0", and missing "ret = 0",
because of it, it always return -EINVAL eventhough no error.
This patch adds missing "ret = 0" for success case.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/87ft6ya65z.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c