From fc626543fdf5011fa21654df5cb7200c2bfc9294 Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 7 Sep 2022 19:41:45 +0800 Subject: [PATCH] audio/audio: remove invalid assign of errno Signed-off-by: chao an --- 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; }