From a240cc0a68be1e10a03d12bd3b8247e457079f03 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 20 Dec 2016 15:45:30 +0000 Subject: Simplify the activate() functions of auglx(4), autri(4), and auvia(4). From Michael W. Bombardieri . Thanks. --- sys/dev/pci/auglx.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'sys/dev/pci/auglx.c') 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 @@ -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)); } -- cgit v1.2.3