mirror of
https://github.com/apache/nuttx.git
synced 2026-02-05 11:11:34 +08:00
audio/comp: fix build warning caused by invalid return value
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 <anchao.archer@bytedance.com>
This commit is contained in:
@@ -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) +
|
||||
|
||||
Reference in New Issue
Block a user