Commit 3c5a18a1 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Mark Brown

ASoC: amd: acp: Return in-case of error

Return when error occurs instead of proceeding to for loop which will
use val uninitialized.

Fixes: f6f7d25b ("ASoC: amd: acp: Add pte configuration for ACP7.0 platform")
Signed-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://patch.msgid.link/20240906103727.222749-1-usama.anjum@collabora.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1798acef
......@@ -231,7 +231,7 @@ void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int s
break;
default:
dev_err(adata->dev, "Invalid dai id %x\n", stream->dai_id);
break;
return;
}
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment