From b656a02108b92cab3889f692f6f131aadcc7814c Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sun, 31 Dec 2006 16:32:45 +0000 Subject: malo_stop() never fails so no need to return an error. OK mglocker@ --- sys/dev/ic/malo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/dev/ic/malo.c') diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index ff6d3b01eba..be87e1bebd1 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.56 2006/12/31 16:27:55 claudio Exp $ */ +/* $OpenBSD: malo.c,v 1.57 2006/12/31 16:32:44 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker @@ -257,7 +257,7 @@ void malo_free_tx_ring(struct malo_softc *sc, struct malo_tx_ring *ring); int malo_init(struct ifnet *ifp); int malo_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data); void malo_start(struct ifnet *ifp); -int malo_stop(struct malo_softc *sc); +void malo_stop(struct malo_softc *sc); void malo_watchdog(struct ifnet *ifp); int malo_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg); @@ -1078,7 +1078,7 @@ malo_start(struct ifnet *ifp) } } -int +void malo_stop(struct malo_softc *sc) { struct ieee80211com *ic = &sc->sc_ic; @@ -1106,8 +1106,6 @@ malo_stop(struct malo_softc *sc) /* power off cardbus socket */ if (sc->sc_disable) sc->sc_disable(sc); - - return (0); } void -- cgit v1.2.3