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 unused variable
details: https://anonhg.NetBSD.org/src/rev/98eacc7024f9
branches: trunk
changeset: 789938:98eacc7024f9
user: martin <martin%NetBSD.org@localhost>
date: Fri Sep 13 21:03:04 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/pci/if_ex_pci.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 448c0ca48658 -r 98eacc7024f9 sys/dev/pci/if_ex_pci.c
--- a/sys/dev/pci/if_ex_pci.c Fri Sep 13 20:56:17 2013 +0000
+++ b/sys/dev/pci/if_ex_pci.c Fri Sep 13 21:03:04 2013 +0000
@@ -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 @@
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 @@
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);
Home |
Main Index |
Thread Index |
Old Index