ASoC: soc-pcm: Fix an uninitialized error code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Jan 2021 09:50:21 +0000 (12:50 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 11 Jan 2021 14:03:55 +0000 (14:03 +0000)
commite91b65b36fde0690f1c694f17dd1b549295464a7
tree3679a02263c8cd8215317b1bf113b1faf4362de7
parentfe9989fb25b0cea6414e72e0514c70ed8b158c28
ASoC: soc-pcm: Fix an uninitialized error code

The error path here doesn't set "ret" so it returns uninitialized data
instead of a negative error code.

Fixes: 2c1382840c19 ("ASoC: soc-pcm: disconnect BEs if the FE is not ready")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X/wfXQFxeMLvpO+1@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c