summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2024-08-28 03:54:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2024-08-28 03:54:55 +0000
commit1809919b4800b3e31e979976777e65c3ddf36838 (patch)
tree75ea43fb76a6aa847eae201053a1a6abdeae1aaf /sys
parentdb5317955f94dfe55110e030870ae8280a9ae5c6 (diff)
splnet() not needed in activate function
ok gkoehler
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/dev/if_wi_obio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/if_wi_obio.c b/sys/arch/macppc/dev/if_wi_obio.c
index 89e91a68b44..234085557c1 100644
--- a/sys/arch/macppc/dev/if_wi_obio.c
+++ b/sys/arch/macppc/dev/if_wi_obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_obio.c,v 1.21 2022/10/15 08:41:18 jsg Exp $ */
+/* $OpenBSD: if_wi_obio.c,v 1.22 2024/08/28 03:54:54 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -155,9 +155,7 @@ wi_obio_activate(struct device *dev, int act)
struct wi_obio_softc *psc = (struct wi_obio_softc *)dev;
struct wi_softc *sc = &psc->sc_wi;
struct ifnet *ifp = &sc->sc_ic.ic_if;
- int s;
- s = splnet();
switch (act) {
case DVACT_DEACTIVATE:
ifp->if_timer = 0;
@@ -166,7 +164,6 @@ wi_obio_activate(struct device *dev, int act)
wi_obio_disable(sc);
break;
}
- splx(s);
return (0);
}