Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci remove set but unused variables



details:   https://anonhg.NetBSD.org/src/rev/1a02b34048e5
branches:  trunk
changeset: 790579:1a02b34048e5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 21:12:24 2013 +0000

description:
remove set but unused variables

diffstat:

 sys/arch/x86/pci/fwhrng.c      |  7 ++-----
 sys/arch/x86/pci/pci_machdep.c |  8 +++-----
 2 files changed, 5 insertions(+), 10 deletions(-)

diffs (59 lines):

diff -r 535279523c2e -r 1a02b34048e5 sys/arch/x86/pci/fwhrng.c
--- a/sys/arch/x86/pci/fwhrng.c Thu Oct 17 21:11:15 2013 +0000
+++ b/sys/arch/x86/pci/fwhrng.c Thu Oct 17 21:12:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fwhrng.c,v 1.5 2012/02/02 19:43:01 tls Exp $   */
+/*     $NetBSD: fwhrng.c,v 1.6 2013/10/17 21:12:24 christos Exp $      */
 
 /*
  * Copyright (c) 2000 Michael Shalayeff
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fwhrng.c,v 1.5 2012/02/02 19:43:01 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fwhrng.c,v 1.6 2013/10/17 21:12:24 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -71,11 +71,8 @@
 {
        bus_space_tag_t bst;
        bus_space_handle_t bsh;
-       int ret;
        uint8_t id0, id1, data0, data1;
 
-       ret = 0;
-
        bst = x86_bus_space_mem;
 
        /* read chip ID */
diff -r 535279523c2e -r 1a02b34048e5 sys/arch/x86/pci/pci_machdep.c
--- a/sys/arch/x86/pci/pci_machdep.c    Thu Oct 17 21:11:15 2013 +0000
+++ b/sys/arch/x86/pci/pci_machdep.c    Thu Oct 17 21:12:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.c,v 1.61 2013/10/05 11:20:34 gson Exp $    */
+/*     $NetBSD: pci_machdep.c,v 1.62 2013/10/17 21:12:24 christos Exp $        */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.61 2013/10/05 11:20:34 gson Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.62 2013/10/17 21:12:24 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -309,9 +309,7 @@
 static void
 pci_conf_unlock(struct pci_conf_lock *ocl)
 {
-       uint32_t sel;
-
-       sel = atomic_cas_32_ni(&cl->cl_sel, cl->cl_sel, ocl->cl_sel);
+       atomic_cas_32_ni(&cl->cl_sel, cl->cl_sel, ocl->cl_sel);
        pci_conf_select(ocl->cl_sel);
        if (ocl->cl_cpuno != cl->cl_cpuno)
                atomic_cas_32(&cl->cl_cpuno, cl->cl_cpuno, ocl->cl_cpuno);



Home | Main Index | Thread Index | Old Index