Remove an extra mutex_spin_exit() in error path.

This is a part of rev 1.38.
This commit is contained in:
isaki 2021-02-06 13:02:28 +00:00
parent 9cb2dab029
commit 2d5b96b7a6
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dbri.c,v 1.44 2021/02/06 09:15:11 isaki Exp $ */ /* $NetBSD: dbri.c,v 1.45 2021/02/06 13:02:28 isaki Exp $ */
/* /*
* Copyright (C) 1997 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de) * Copyright (C) 1997 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de)
@ -34,7 +34,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.44 2021/02/06 09:15:11 isaki Exp $"); __KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.45 2021/02/06 13:02:28 isaki Exp $");
#include "audio.h" #include "audio.h"
#if NAUDIO > 0 #if NAUDIO > 0
@ -1065,7 +1065,6 @@ mmcodec_setcontrol(struct dbri_softc *sc)
if (error == EINTR) { if (error == EINTR) {
DPRINTF("%s: interrupted\n", device_xname(sc->sc_dev)); DPRINTF("%s: interrupted\n", device_xname(sc->sc_dev));
ret = -1; ret = -1;
mutex_spin_exit(&sc->sc_intr_lock);
goto fail; goto fail;
} }
bail++; bail++;