Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci remove unnecessary lock acquire and release



details:   https://anonhg.NetBSD.org/src/rev/f9ea49bd1a54
branches:  trunk
changeset: 946807:f9ea49bd1a54
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Dec 10 04:00:11 2020 +0000

description:
remove unnecessary lock acquire and release

diffstat:

 sys/dev/pci/if_iavf.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 1e81b13b4d0a -r f9ea49bd1a54 sys/dev/pci/if_iavf.c
--- a/sys/dev/pci/if_iavf.c     Thu Dec 10 03:58:35 2020 +0000
+++ b/sys/dev/pci/if_iavf.c     Thu Dec 10 04:00:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iavf.c,v 1.9 2020/12/10 03:58:35 yamaguchi Exp $    */
+/*     $NetBSD: if_iavf.c,v 1.10 2020/12/10 04:00:11 yamaguchi Exp $   */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iavf.c,v 1.9 2020/12/10 03:58:35 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iavf.c,v 1.10 2020/12/10 04:00:11 yamaguchi Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -4842,9 +4842,6 @@
        uint8_t *lut, v;
        int rv, i;
 
-       mutex_enter(&sc->sc_adminq_lock);
-       mutex_exit(&sc->sc_adminq_lock);
-
        aqb = iavf_aqb_get(sc, &sc->sc_atq_idle);
        if (aqb == NULL)
                return -1;



Home | Main Index | Thread Index | Old Index