From cc44b3b5214d34d6268447915c0308ae7dce6bdc Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 2 Jun 2025 16:31:16 +0800 Subject: [PATCH] audio/comp: fix build warning caused by invalid return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit audio/audio_comp.c:958:14: warning: returning ‘int’ from a function with return type ‘struct audio_lowerhalf_s *’ makes pointer from integer without a cast [-Wint-conversion] 958 | return -EINVAL; | ^ Signed-off-by: chao an --- audio/audio_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio_comp.c b/audio/audio_comp.c index 9900a87a77..a08a255670 100644 --- a/audio/audio_comp.c +++ b/audio/audio_comp.c @@ -955,7 +955,7 @@ FAR struct audio_lowerhalf_s *audio_comp_initialize(FAR const char *name, if (i == 0) { - return -EINVAL; + return NULL; } priv = kmm_zalloc(sizeof(struct audio_comp_priv_s) +