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 2020/12/19 13:58:14 UTC
[incubator-nuttx] branch master updated: audio: uninitialize usermq
to NULL when the device has not
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 7a3f2bf audio: uninitialize usermq to NULL when the device has not
7a3f2bf is described below
commit 7a3f2bf7abbadc2966ea7d498a760e514fa04621
Author: danguanghua <da...@xiaomi.com>
AuthorDate: Thu Dec 17 18:20:34 2020 +0800
audio: uninitialize usermq to NULL when the device has not
N/A
be opened anymore. There is no need to update usermq to NULL
in audio_open.
Change-Id: I0c20bfa40a4fcd5c8cae0cf09bb55e113435ea62
Signed-off-by: danguanghua <da...@xiaomi.com>
---
audio/audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/audio.c b/audio/audio.c
index 869eab0..05fbcb9 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -187,7 +187,6 @@ static int audio_open(FAR struct file *filep)
/* Save the new open count on success */
upper->crefs = tmp;
- upper->usermq = NULL;
ret = OK;
errout_with_sem:
@@ -244,6 +243,7 @@ static int audio_close(FAR struct file *filep)
audinfo("calling shutdown\n");
lower->ops->shutdown(lower);
+ upper->usermq = NULL;
}
ret = OK;