audio: google: Add missing return check

Check those errors

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2022-12-13 12:44:03 -08:00 committed by Liam Girdwood
parent 0c5ddaf617
commit 9e7353a5bb
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ static struct comp_dev *google_rtc_audio_processing_create(
&capture_headroom_linear,
&echo_path_delay_ms);
if (!cd->state) {
if (ret < 0) {
comp_err(dev, "Failed to apply GoogleRtcAudioProcessingParameters");
goto fail;
}