Module Name: src Committed By: martin Date: Sun Sep 15 09:19:52 UTC 2013
Modified Files: src/sys/dev/pci: pci.c Log Message: Comment out a currently unused variable, but leave it around for debug/ documentation purposes. To generate a diff of this commit: cvs rdiff -u -r1.143 -r1.144 src/sys/dev/pci/pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci.c diff -u src/sys/dev/pci/pci.c:1.143 src/sys/dev/pci/pci.c:1.144 --- src/sys/dev/pci/pci.c:1.143 Sat Oct 20 06:04:01 2012 +++ src/sys/dev/pci/pci.c Sun Sep 15 09:19:52 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: pci.c,v 1.143 2012/10/20 06:04:01 matt Exp $ */ +/* $NetBSD: pci.c,v 1.144 2013/09/15 09:19:52 martin Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.143 2012/10/20 06:04:01 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.144 2013/09/15 09:19:52 martin Exp $"); #include "opt_pci.h" @@ -274,7 +274,7 @@ pci_probe_device(struct pci_softc *sc, p { pci_chipset_tag_t pc = sc->sc_pc; struct pci_attach_args pa; - pcireg_t id, csr, class, intr, bhlcr, bar, endbar; + pcireg_t id, /* csr, */ class, intr, bhlcr, bar, endbar; int ret, pin, bus, device, function, i, width; int locs[PCICF_NLOCS]; @@ -289,7 +289,7 @@ pci_probe_device(struct pci_softc *sc, p return 0; id = pci_conf_read(pc, tag, PCI_ID_REG); - csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG); + /* csr = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG); */ class = pci_conf_read(pc, tag, PCI_CLASS_REG); /* Invalid vendor ID value? */