From 9e7353a5bb738f42eada59e385ecaa8589bacff6 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Tue, 13 Dec 2022 12:44:03 -0800 Subject: [PATCH] audio: google: Add missing return check Check those errors Signed-off-by: Curtis Malainey --- src/audio/google/google_rtc_audio_processing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/google/google_rtc_audio_processing.c b/src/audio/google/google_rtc_audio_processing.c index 9b3cdc7d0..a88a1b070 100644 --- a/src/audio/google/google_rtc_audio_processing.c +++ b/src/audio/google/google_rtc_audio_processing.c @@ -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; }