Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sbus Remove an extra mutex_spin_exit() in error path.



details:   https://anonhg.NetBSD.org/src/rev/37253e82c792
branches:  trunk
changeset: 951566:37253e82c792
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 06 13:02:28 2021 +0000

description:
Remove an extra mutex_spin_exit() in error path.
This is a part of rev 1.38.

diffstat:

 sys/dev/sbus/dbri.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r cc7153e701e5 -r 37253e82c792 sys/dev/sbus/dbri.c
--- a/sys/dev/sbus/dbri.c       Sat Feb 06 12:59:13 2021 +0000
+++ b/sys/dev/sbus/dbri.c       Sat Feb 06 13:02:28 2021 +0000
@@ -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@localhost)
@@ -34,7 +34,7 @@
  */
 
 #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"
 #if NAUDIO > 0
@@ -1065,7 +1065,6 @@
                if (error == EINTR) {
                        DPRINTF("%s: interrupted\n", device_xname(sc->sc_dev));
                        ret = -1;
-                       mutex_spin_exit(&sc->sc_intr_lock);
                        goto fail;
                }
                bail++;



Home | Main Index | Thread Index | Old Index