diff options
author | 2013-05-15 21:19:45 +0000 | |
---|---|---|
committer | 2013-05-15 21:19:45 +0000 | |
commit | 5291fab533e5a75afb26efa97517976a047aeceb (patch) | |
tree | 28bdc24588a911d7bde39aae37aec898fab6b4e4 | |
parent | remove unused variable (diff) | |
download | wireguard-openbsd-5291fab533e5a75afb26efa97517976a047aeceb.tar.xz wireguard-openbsd-5291fab533e5a75afb26efa97517976a047aeceb.zip |
remove unused splaudio/splx pair
-rw-r--r-- | sys/arch/sparc/dev/cs4231.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c index 94221574679..046e626684a 100644 --- a/sys/arch/sparc/dev/cs4231.c +++ b/sys/arch/sparc/dev/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.30 2013/05/15 08:29:23 ratchov Exp $ */ +/* $OpenBSD: cs4231.c,v 1.31 2013/05/15 21:19:45 ratchov Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -764,7 +764,7 @@ cs4231_commit_settings(addr) { struct cs4231_softc *sc = (struct cs4231_softc *)addr; struct cs4231_regs *regs = sc->sc_regs; - int s, tries; + int tries; u_int8_t r, fs; if (sc->sc_need_commit == 0) @@ -774,8 +774,6 @@ cs4231_commit_settings(addr) if (sc->sc_channels == 2) fs |= FMT_STEREO; - s = splaudio(); - r = cs4231_read(sc, SP_INTERFACE_CONFIG) | AUTO_CAL_ENABLE; regs->iar = MODE_CHANGE_ENABLE; regs->iar = MODE_CHANGE_ENABLE | SP_INTERFACE_CONFIG; @@ -813,8 +811,6 @@ cs4231_commit_settings(addr) printf("%s: timeout waiting for autocalibration\n", sc->sc_dev.dv_xname); - splx(s); - sc->sc_need_commit = 0; return (0); } |