Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Remove dead codes.
details: https://anonhg.NetBSD.org/src/rev/63534f91c36f
branches: trunk
changeset: 355786:63534f91c36f
user: isaki <isaki%NetBSD.org@localhost>
date: Tue Aug 15 05:05:32 2017 +0000
description:
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:
sys/dev/audio.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (38 lines):
diff -r 294c47b4f2fc -r 63534f91c36f sys/dev/audio.c
--- a/sys/dev/audio.c Tue Aug 15 04:42:56 2017 +0000
+++ b/sys/dev/audio.c Tue Aug 15 05:05:32 2017 +0000
@@ -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@localhost>
@@ -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 @@
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 @@
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))
Home |
Main Index |
Thread Index |
Old Index