forked from nuttx/nuttx-update
audio/audio: remove invalid assign of errno
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
de8d54781c
commit
fc626543fd
1 changed files with 0 additions and 2 deletions
|
@ -153,7 +153,6 @@ static int audio_open(FAR struct file *filep)
|
|||
ret = nxsem_wait(&upper->exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = -errno;
|
||||
goto errout;
|
||||
}
|
||||
|
||||
|
@ -204,7 +203,6 @@ static int audio_close(FAR struct file *filep)
|
|||
ret = nxsem_wait(&upper->exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = -errno;
|
||||
goto errout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue