Module Name: src Committed By: martin Date: Fri Sep 13 21:03:04 UTC 2013
Modified Files: src/sys/dev/pci: if_ex_pci.c Log Message: Remove unused variable To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/dev/pci/if_ex_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/if_ex_pci.c diff -u src/sys/dev/pci/if_ex_pci.c:1.55 src/sys/dev/pci/if_ex_pci.c:1.56 --- src/sys/dev/pci/if_ex_pci.c:1.55 Sat Mar 30 03:21:05 2013 +++ src/sys/dev/pci/if_ex_pci.c Fri Sep 13 21:03:04 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: if_ex_pci.c,v 1.55 2013/03/30 03:21:05 christos Exp $ */ +/* $NetBSD: if_ex_pci.c,v 1.56 2013/09/13 21:03:04 martin Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_ex_pci.c,v 1.55 2013/03/30 03:21:05 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ex_pci.c,v 1.56 2013/09/13 21:03:04 martin Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -327,7 +327,6 @@ ex_d3tod0(pci_chipset_tag_t pc, pcitag_t uint32_t base0; uint32_t base1; uint32_t romaddr; - uint32_t pci_command; uint32_t pci_int_lat; uint32_t pci_cache_lat; @@ -336,7 +335,8 @@ ex_d3tod0(pci_chipset_tag_t pc, pcitag_t aprint_normal_dev(self, "found in power state D%d, " "attempting to recover.\n", state); - pci_command = pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG); + /* XXX is this needed? */ + (void)pci_conf_read(pc, tag, PCI_COMMAND_STATUS_REG); base0 = pci_conf_read(pc, tag, PCI_BAR0); base1 = pci_conf_read(pc, tag, PCI_BAR1); romaddr = pci_conf_read(pc, tag, PCI_EXP_ROM_BAR);