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:
parent
436c814c2e
commit
cc44b3b521
1 changed files with 1 additions and 1 deletions
|
|
@ -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) +
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue