You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/08 01:02:21 UTC
[incubator-nuttx] branch master updated: audio/audio: remove invalid assign of errno
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new fc626543fd audio/audio: remove invalid assign of errno
fc626543fd is described below
commit fc626543fdf5011fa21654df5cb7200c2bfc9294
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Sep 7 19:41:45 2022 +0800
audio/audio: remove invalid assign of errno
Signed-off-by: chao an <an...@xiaomi.com>
---
audio/audio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index bf3016d1ff..4d7e05105e 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -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;
}