summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auglx.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-12-20 15:45:30 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-12-20 15:45:30 +0000
commita240cc0a68be1e10a03d12bd3b8247e457079f03 (patch)
tree4947407a398e5cfc87ecf9d13851aef3fc920596 /sys/dev/pci/auglx.c
parentc866939fad12583300fd211e7892a28fb8971021 (diff)
Simplify the activate() functions of auglx(4), autri(4), and
auvia(4). From Michael W. Bombardieri <mb at ii.net>. Thanks.
Diffstat (limited to 'sys/dev/pci/auglx.c')
-rw-r--r--sys/dev/pci/auglx.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/dev/pci/auglx.c b/sys/dev/pci/auglx.c
index 166a9530a74..4216555a498 100644
--- a/sys/dev/pci/auglx.c
+++ b/sys/dev/pci/auglx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auglx.c,v 1.15 2016/09/19 06:46:44 ratchov Exp $ */
+/* $OpenBSD: auglx.c,v 1.16 2016/12/20 15:45:29 ratchov Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -918,16 +918,8 @@ int
auglx_activate(struct device *self, int act)
{
struct auglx_softc *sc = (struct auglx_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));
}