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; }