summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_ste.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-08-10 19:41:05 +0000
committerderaadt <deraadt@openbsd.org>2009-08-10 19:41:05 +0000
commit4ffe6de589ac4bca0097e20124ae0c10c27cef0b (patch)
treeef93c1a8bc4b74480649f872dcb33e7cf1c359dc /sys/dev/pci/if_ste.c
parentclear the beacons owner/valid bits to avoid garbage. (diff)
downloadwireguard-openbsd-4ffe6de589ac4bca0097e20124ae0c10c27cef0b.tar.xz
wireguard-openbsd-4ffe6de589ac4bca0097e20124ae0c10c27cef0b.zip
A few more simple cases of shutdown hooks which only call xxstop, when
we now know the interface has already been stopped
Diffstat (limited to 'sys/dev/pci/if_ste.c')
-rw-r--r--sys/dev/pci/if_ste.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c
index 1ffab70958c..f224236425f 100644
--- a/sys/dev/pci/if_ste.c
+++ b/sys/dev/pci/if_ste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ste.c,v 1.43 2008/11/28 02:44:18 brad Exp $ */
+/* $OpenBSD: if_ste.c,v 1.44 2009/08/10 19:41:05 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -82,7 +82,6 @@
int ste_probe(struct device *, void *, void *);
void ste_attach(struct device *, struct device *, void *);
int ste_intr(void *);
-void ste_shutdown(void *);
void ste_init(void *);
void ste_rxeoc(struct ste_softc *);
void ste_rxeof(struct ste_softc *);
@@ -985,8 +984,6 @@ ste_attach(struct device *parent, struct device *self, void *aux)
*/
if_attach(ifp);
ether_ifattach(ifp);
-
- shutdownhook_establish(ste_shutdown, sc);
return;
fail_2:
@@ -1505,11 +1502,3 @@ ste_watchdog(struct ifnet *ifp)
return;
}
-
-void
-ste_shutdown(void *v)
-{
- struct ste_softc *sc = (struct ste_softc *)v;
-
- ste_stop(sc);
-}