diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-12-12 06:43:02 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-12-12 06:43:02 +0000 |
commit | 27a62c139a2675f965acbf01b06de02309f3e87d (patch) | |
tree | 5875b6a3c84c5f9e4c314efa314483015fc8a5a1 /sys | |
parent | a7c4a316e01999bbca574fa2e9876ebec1a5b539 (diff) |
Simplify auacer_activate(). From Michael W. Bombardieri <mb at ii.net>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/auacer.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/dev/pci/auacer.c b/sys/dev/pci/auacer.c index ff72fc58462..8537ba9fda2 100644 --- a/sys/dev/pci/auacer.c +++ b/sys/dev/pci/auacer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auacer.c,v 1.20 2016/09/19 06:46:44 ratchov Exp $ */ +/* $OpenBSD: auacer.c,v 1.21 2016/12/12 06:43:01 ratchov Exp $ */ /* $NetBSD: auacer.c,v 1.3 2004/11/10 04:20:26 kent Exp $ */ /*- @@ -899,16 +899,8 @@ int auacer_activate(struct device *self, int act) { struct auacer_softc *sc = (struct auacer_softc *)self; - int rv = 0; - switch (act) { - case DVACT_RESUME: + if (act == DVACT_RESUME) ac97_resume(&sc->host_if, sc->codec_if); - rv = config_activate_children(self, act); - break; - default: - rv = config_activate_children(self, act); - break; - } - return (rv); + return (config_activate_children(self, act)); } |