diff options
author | 2010-08-04 21:02:24 +0000 | |
---|---|---|
committer | 2010-08-04 21:02:24 +0000 | |
commit | c9272ee4027a39e64209d9c07b30b861aca67d6a (patch) | |
tree | a8c6c5198ca25f5b54ccfa8fc0e51f50dbd36ec2 | |
parent | use a workq for resume. (diff) | |
download | wireguard-openbsd-c9272ee4027a39e64209d9c07b30b861aca67d6a.tar.xz wireguard-openbsd-c9272ee4027a39e64209d9c07b30b861aca67d6a.zip |
on resume: calling sc_power after ath_init() is silly. ath_init()
gets down to there through ath_init() -> ath_enable() -> ...
from a discussion with damien
-rw-r--r-- | sys/dev/ic/ath.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index 41b5455ee9d..c25a9f40c52 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.86 2010/07/02 06:06:30 reyk Exp $ */ +/* $OpenBSD: ath.c,v 1.87 2010/08/04 21:02:24 deraadt Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -529,8 +529,6 @@ ath_resume(struct ath_softc *sc, int why) if (ifp->if_flags & IFF_UP) { ath_init(ifp); - if (sc->sc_power != NULL) - (*sc->sc_power)(sc, why); if (ifp->if_flags & IFF_RUNNING) ath_start(ifp); } |