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 a variable which assigned but never used, ...



details:   https://anonhg.NetBSD.org/src/rev/8626603b9a37
branches:  trunk
changeset: 758061:8626603b9a37
user:      taca <taca%NetBSD.org@localhost>
date:      Sat Oct 16 06:29:33 2010 +0000

description:
Remove a variable which assigned but never used, I found while reading
if_bge.c yesterday.

diffstat:

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

diffs (30 lines):

diff -r 4ba315e2576f -r 8626603b9a37 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Sat Oct 16 05:59:35 2010 +0000
+++ b/sys/dev/pci/if_bge.c      Sat Oct 16 06:29:33 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.186 2010/07/21 15:35:39 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.187 2010/10/16 06:29:33 taca Exp $        */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.186 2010/07/21 15:35:39 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.187 2010/10/16 06:29:33 taca Exp $");
 
 #include "vlan.h"
 #include "rnd.h"
@@ -749,11 +749,8 @@
 static void
 bge_set_max_readrq(struct bge_softc *sc)
 {
-       device_t dev;
        pcireg_t val;
 
-       dev = sc->bge_dev;
-
        val = pci_conf_read(sc->sc_pc, sc->sc_pcitag, sc->bge_pciecap
            + PCI_PCIE_DCSR);
        if ((val & PCI_PCIE_DCSR_MAX_READ_REQ) !=



Home | Main Index | Thread Index | Old Index