mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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:
+1
-1
@@ -955,7 +955,7 @@ FAR struct audio_lowerhalf_s *audio_comp_initialize(FAR const char *name,
|
|||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
priv = kmm_zalloc(sizeof(struct audio_comp_priv_s) +
|
priv = kmm_zalloc(sizeof(struct audio_comp_priv_s) +
|
||||||
|
|||||||
Reference in New Issue
Block a user