summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-08-10 17:29:19 +0000
committerderaadt <deraadt@openbsd.org>2009-08-10 17:29:19 +0000
commit0886ad751f845b8908b0d44f37f93b3b8f0cf4cb (patch)
tree520e956cd52a8a1ccc4a190be780853731e75834
parentmissing argument to DPRINTF. (diff)
downloadwireguard-openbsd-0886ad751f845b8908b0d44f37f93b3b8f0cf4cb.tar.xz
wireguard-openbsd-0886ad751f845b8908b0d44f37f93b3b8f0cf4cb.zip
xge_shutdown is not needed now that interface is stopped, since
xge_shutdown was just calling stop again ok dlg
-rw-r--r--sys/dev/pci/if_xge.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c
index 513df959520..a5d42f705bc 100644
--- a/sys/dev/pci/if_xge.c
+++ b/sys/dev/pci/if_xge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xge.c,v 1.49 2008/11/28 02:44:18 brad Exp $ */
+/* $OpenBSD: if_xge.c,v 1.50 2009/08/10 17:29:19 deraadt Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
@@ -179,7 +179,6 @@ struct xge_softc {
struct ifmedia xena_media;
void *sc_ih;
- void *sc_shutdownhook;
bus_dma_tag_t sc_dmat;
bus_space_tag_t sc_st;
@@ -223,7 +222,6 @@ int xge_alloc_txmem(struct xge_softc *);
int xge_alloc_rxmem(struct xge_softc *);
void xge_start(struct ifnet *);
void xge_stop(struct ifnet *, int);
-void xge_shutdown(void *);
int xge_add_rxbuf(struct xge_softc *, int);
void xge_setmulti(struct xge_softc *);
void xge_setpromisc(struct xge_softc *);
@@ -655,8 +653,6 @@ xge_attach(struct device *parent, struct device *self, void *aux)
if_attach(ifp);
ether_ifattach(ifp);
- sc->sc_shutdownhook = shutdownhook_establish(xge_shutdown, sc);
-
/*
* Setup interrupt vector before initializing.
*/
@@ -811,15 +807,6 @@ xge_stop(struct ifnet *ifp, int disable)
;
}
-void
-xge_shutdown(void *pv)
-{
- struct xge_softc *sc = (struct xge_softc *)pv;
- struct ifnet *ifp = &sc->sc_arpcom.ac_if;
-
- xge_stop(ifp, 1);
-}
-
int
xge_intr(void *pv)
{