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