From 6ed267ee79007a035f661d6022e6aadcd9143e4f Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 28 Aug 2024 03:54:54 +0000 Subject: [PATCH] splnet() not needed in activate function ok gkoehler --- sys/arch/macppc/dev/if_wi_obio.c | 5 +---- 1 file changed, 1 insertion(+), 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); } -- 2.20.1