Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ofppc/pci PR/51827: David Binderman: delete pointle...



details:   https://anonhg.NetBSD.org/src/rev/64c1b70bf0fd
branches:  trunk
changeset: 820584:64c1b70bf0fd
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 11 18:19:29 2017 +0000

description:
PR/51827: David Binderman: delete pointless local variable

diffstat:

 sys/arch/ofppc/pci/ofwpci.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 3a1ab33e6ae2 -r 64c1b70bf0fd sys/arch/ofppc/pci/ofwpci.c
--- a/sys/arch/ofppc/pci/ofwpci.c       Wed Jan 11 18:15:02 2017 +0000
+++ b/sys/arch/ofppc/pci/ofwpci.c       Wed Jan 11 18:19:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwpci.c,v 1.13 2016/10/19 00:08:41 nonaka Exp $ */
+/* $NetBSD: ofwpci.c,v 1.14 2017/01/11 18:19:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofwpci.c,v 1.13 2016/10/19 00:08:41 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwpci.c,v 1.14 2017/01/11 18:19:29 christos Exp $");
 
 #include "opt_pci.h"
 
@@ -134,7 +134,7 @@
        struct pcibus_attach_args pba;
        struct genppc_pci_chipset_businfo *pbi;
        int node = ca->ca_node;
-       int i, isprim = 0;
+       int i;
        uint32_t busrange[2];
        char buf[64];
 #ifdef PCI_NETBSD_CONFIGURE
@@ -173,7 +173,6 @@
        if (of_find_firstchild_byname(OF_finddevice("/"), "pci") == node) {
                int isa_node;
 
-               isprim++;
                /* yes we are, now do we have an ISA child? */
                isa_node = of_find_firstchild_byname(node, "isa");
                if (isa_node != -1) {



Home | Main Index | Thread Index | Old Index