Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev ex_softc.ex_bustype is written but never read. Just...
details: https://anonhg.NetBSD.org/src/rev/6fb16b6cbe0a
branches: trunk
changeset: 753329:6fb16b6cbe0a
user: dyoung <dyoung%NetBSD.org@localhost>
date: Mon Mar 22 23:03:30 2010 +0000
description:
ex_softc.ex_bustype is written but never read. Just get rid of it.
diffstat:
sys/dev/cardbus/if_ex_cardbus.c | 5 ++---
sys/dev/ic/elinkxlvar.h | 7 +------
sys/dev/pci/if_ex_pci.c | 5 ++---
3 files changed, 5 insertions(+), 12 deletions(-)
diffs (73 lines):
diff -r 394d3d74de38 -r 6fb16b6cbe0a sys/dev/cardbus/if_ex_cardbus.c
--- a/sys/dev/cardbus/if_ex_cardbus.c Mon Mar 22 23:01:10 2010 +0000
+++ b/sys/dev/cardbus/if_ex_cardbus.c Mon Mar 22 23:03:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ex_cardbus.c,v 1.53 2010/03/22 17:23:44 dyoung Exp $ */
+/* $NetBSD: if_ex_cardbus.c,v 1.54 2010/03/22 23:03:30 dyoung Exp $ */
/*
* Copyright (c) 1998 and 1999
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.53 2010/03/22 17:23:44 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.54 2010/03/22 23:03:30 dyoung Exp $");
/* #define EX_DEBUG 4 */ /* define to report information for debugging */
@@ -221,7 +221,6 @@
sc->sc_dev = self;
- sc->ex_bustype = EX_BUS_CARDBUS;
sc->sc_dmat = ca->ca_dmat;
csc->sc_ct = ca->ca_ct;
csc->sc_intrline = ca->ca_intrline;
diff -r 394d3d74de38 -r 6fb16b6cbe0a sys/dev/ic/elinkxlvar.h
--- a/sys/dev/ic/elinkxlvar.h Mon Mar 22 23:01:10 2010 +0000
+++ b/sys/dev/ic/elinkxlvar.h Mon Mar 22 23:03:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elinkxlvar.h,v 1.21 2010/03/22 17:11:19 dyoung Exp $ */
+/* $NetBSD: elinkxlvar.h,v 1.22 2010/03/22 23:03:30 dyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -109,11 +109,6 @@
#define EX_FLAGS_POWERMGMT 0x2000
#define EX_FLAGS_ATTACHED 0x4000 /* attach has succeeded */
- u_char ex_bustype; /* parent bus type (currently unused) */
-
-#define EX_BUS_PCI 0
-#define EX_BUS_CARDBUS 1
-
#if NRND > 0
rndsource_element_t rnd_source;
#endif
diff -r 394d3d74de38 -r 6fb16b6cbe0a sys/dev/pci/if_ex_pci.c
--- a/sys/dev/pci/if_ex_pci.c Mon Mar 22 23:01:10 2010 +0000
+++ b/sys/dev/pci/if_ex_pci.c Mon Mar 22 23:03:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ex_pci.c,v 1.52 2010/03/22 17:20:42 dyoung Exp $ */
+/* $NetBSD: if_ex_pci.c,v 1.53 2010/03/22 23:03:30 dyoung 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.52 2010/03/22 17:20:42 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ex_pci.c,v 1.53 2010/03/22 23:03:30 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -233,7 +233,6 @@
sc->sc_dmat = pa->pa_dmat;
- sc->ex_bustype = EX_BUS_PCI;
sc->ex_conf = epp->epp_flags;
/* Enable the card. */
Home |
Main Index |
Thread Index |
Old Index