From d4fd9f53cd53bba0fed403beecb300691a35e3eb Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 11 Sep 2023 16:56:42 +0800 Subject: [PATCH] Fix error: arch/sim/src/sim/posix/sim_alsa.c:290:18: error: 'flags' undeclared Signed-off-by: Xiang Xiao --- arch/sim/src/sim/posix/sim_alsa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/sim/src/sim/posix/sim_alsa.c b/arch/sim/src/sim/posix/sim_alsa.c index 9fc1e148b4..a7c7450d40 100644 --- a/arch/sim/src/sim/posix/sim_alsa.c +++ b/arch/sim/src/sim/posix/sim_alsa.c @@ -286,8 +286,6 @@ static int sim_audio_open(struct sim_audio_s *priv) return 0; fail: - snd_pcm_close(pcm); - up_irq_restore(flags); host_uninterruptible(snd_pcm_close, pcm); return ret; }