From: Amadeusz Sławiński Date: Fri, 27 Jan 2023 23:11:08 +0000 (+0100) Subject: ASoC: topology: Return an error on complete() failure X-Git-Tag: v6.3-rc1~160^2~1^2~83^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b784617a407c4f7e079e1694c3161ab29eb4bab1;p=thirdparty%2Flinux.git ASoC: topology: Return an error on complete() failure Function soc_tplg_dapm_complete() detects an error and logs it, but doesn't return failure to the caller, fix it by returning the error. Reviewed-by: Cezary Rojewski Reviewed-by: Ranjani Sridharan Signed-off-by: Amadeusz Sławiński Link: https://lore.kernel.org/r/20230127231111.937721-9-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index c35c0c53a184e..08dd55f945843 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1563,7 +1563,7 @@ static int soc_tplg_dapm_complete(struct soc_tplg *tplg) dev_err(tplg->dev, "ASoC: failed to create new widgets %d\n", ret); - return 0; + return ret; } static int set_stream_info(struct soc_tplg *tplg, struct snd_soc_pcm_stream *stream,