diff options
| author | isaki <isaki@NetBSD.org> | 2017-08-15 05:05:32 +0000 |
|---|---|---|
| committer | isaki <isaki@NetBSD.org> | 2017-08-15 05:05:32 +0000 |
| commit | dfc145cc030dee3426a583c26ad3e0a392d85394 (patch) | |
| tree | d30f2a72c160a061f64f8f82c11f6639ed3eb3f3 /sys/dev | |
| parent | 467772d576b624f4618603be220eb61e84118710 (diff) | |
Remove dead codes.
sc->sc_opens never changes in this loop and as a result of
previous sc_audiochan cleanup "sc_opens == 0" is the same as
"sc_audiochan is empty".
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/audio.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index f8c45d96764..636217e47bf 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.394 2017/08/15 04:42:56 isaki Exp $ */ +/* $NetBSD: audio.c,v 1.395 2017/08/15 05:05:32 isaki Exp $ */ /*- * Copyright (c) 2016 Nathanial Sloss <nathanialsloss@yahoo.com.au> @@ -148,7 +148,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.394 2017/08/15 04:42:56 isaki Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.395 2017/08/15 05:05:32 isaki Exp $"); #ifdef _KERNEL_OPT #include "audio.h" @@ -3669,9 +3669,6 @@ audio_mix(void *v) blksize = sc->sc_pr.blksize; SIMPLEQ_FOREACH(chan, &sc->sc_audiochan, entries) { - if (!sc->sc_opens) - break; /* ignore interrupt if not open */ - vc = chan->vc; if (!vc->sc_open) @@ -3877,9 +3874,6 @@ audio_upmix(void *v) blksize = sc->sc_rr.blksize; SIMPLEQ_FOREACH(chan, &sc->sc_audiochan, entries) { - if (!sc->sc_opens) - break; /* ignore interrupt if not open */ - vc = chan->vc; if (!(vc->sc_open & AUOPEN_READ)) |
