summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-10-21 02:10:35 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-10-21 02:10:35 +0000
commit7c602e2e75f8eaa3f050128f05fee837b9c9a6b0 (patch)
treec3421840a4865f7eb61617376a157a11ee5548ce /sys
parenta60ddccc7d80e0d2894402c2c05260464df51d7e (diff)
Remove unused global adapter linked list.
From FreeBSD
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_em.c13
-rw-r--r--sys/dev/pci/if_em.h4
2 files changed, 2 insertions, 15 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 30e4fcd1eb3..44029fcc1c9 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.79 2005/10/21 02:03:16 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.80 2005/10/21 02:10:34 brad Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -42,12 +42,6 @@ POSSIBILITY OF SUCH DAMAGE.
int em_display_debug_stats = 0;
/*********************************************************************
- * Linked list of board private structures for all NICs found
- *********************************************************************/
-
-struct em_softc *em_adapter_list = NULL;
-
-/*********************************************************************
* Driver version
*********************************************************************/
@@ -219,11 +213,6 @@ em_attach(struct device *parent, struct device *self, void *aux)
sc = (struct em_softc *)self;
sc->osdep.em_pa = *pa;
- if (em_adapter_list != NULL)
- em_adapter_list->prev = sc;
- sc->next = em_adapter_list;
- em_adapter_list = sc;
-
timeout_set(&sc->timer_handle, em_local_timer, sc);
timeout_set(&sc->tx_fifo_timer_handle, em_82547_move_tail, sc);
diff --git a/sys/dev/pci/if_em.h b/sys/dev/pci/if_em.h
index fbee547223a..a9ac2feea9a 100644
--- a/sys/dev/pci/if_em.h
+++ b/sys/dev/pci/if_em.h
@@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
/* $FreeBSD: if_em.h,v 1.26 2004/09/01 23:22:41 pdeuskar Exp $ */
-/* $OpenBSD: if_em.h,v 1.15 2005/10/15 14:43:37 brad Exp $ */
+/* $OpenBSD: if_em.h,v 1.16 2005/10/21 02:10:34 brad Exp $ */
#ifndef _EM_H_DEFINED_
#define _EM_H_DEFINED_
@@ -297,8 +297,6 @@ typedef struct _DESCRIPTOR_PAIR
struct em_softc {
struct device sc_dv;
struct arpcom interface_data;
- struct em_softc *next;
- struct em_softc *prev;
struct em_hw hw;
/* OpenBSD operating-system-specific structures */