From 5d3ca8b5eb93667be1307508fd58c20f51590c2c Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 15 Aug 2022 01:59:00 +0000 Subject: [PATCH] remove unused smc91cxx_activate() ok miod@ --- sys/dev/ic/smc91cxx.c | 22 +--------------------- sys/dev/ic/smc91cxxvar.h | 3 +-- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c index ae67e892b77..814c1e370ba 100644 --- a/sys/dev/ic/smc91cxx.c +++ b/sys/dev/ic/smc91cxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc91cxx.c,v 1.51 2022/01/09 05:42:42 jsg Exp $ */ +/* $OpenBSD: smc91cxx.c,v 1.52 2022/08/15 01:59:00 jsg Exp $ */ /* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */ /*- @@ -1140,26 +1140,6 @@ smc91cxx_disable(struct smc91cxx_softc *sc) } } -int -smc91cxx_activate(struct device *self, int act) -{ -#if 0 - struct smc91cxx_softc *sc = (struct smc91cxx_softc *)self; -#endif - int rv = 0, s; - - s = splnet(); - switch (act) { - case DVACT_DEACTIVATE: -#if 0 - if_deactivate(&sc->sc_ic.ic_if); -#endif - break; - } - splx(s); - return(rv); -} - int smc91cxx_detach(struct device *self, int flags) { diff --git a/sys/dev/ic/smc91cxxvar.h b/sys/dev/ic/smc91cxxvar.h index f3491201209..b2081852f28 100644 --- a/sys/dev/ic/smc91cxxvar.h +++ b/sys/dev/ic/smc91cxxvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smc91cxxvar.h,v 1.8 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: smc91cxxvar.h,v 1.9 2022/08/15 01:59:00 jsg Exp $ */ /* $NetBSD: smc91cxxvar.h,v 1.4 1997/10/15 05:56:13 explorer Exp $ */ /*- @@ -65,5 +65,4 @@ void smc91cxx_init(struct smc91cxx_softc *); void smc91cxx_stop(struct smc91cxx_softc *); int smc91cxx_enable(struct smc91cxx_softc *); void smc91cxx_disable(struct smc91cxx_softc *); -int smc91cxx_activate(struct device *, int); int smc91cxx_detach(struct device *, int); -- 2.20.1