Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/audio Remove a dead code in audio_track_record().
details: https://anonhg.NetBSD.org/src/rev/cc21633cdb93
branches: trunk
changeset: 364457:cc21633cdb93
user: isaki <isaki%NetBSD.org@localhost>
date: Sat Mar 26 06:41:12 2022 +0000
description:
Remove a dead code in audio_track_record().
diffstat:
sys/dev/audio/audio.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (32 lines):
diff -r db20a5accfc6 -r cc21633cdb93 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c Sat Mar 26 06:36:06 2022 +0000
+++ b/sys/dev/audio/audio.c Sat Mar 26 06:41:12 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.117 2022/03/26 06:36:06 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.118 2022/03/26 06:41:12 isaki Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.117 2022/03/26 06:36:06 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.118 2022/03/26 06:41:12 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -4912,11 +4912,8 @@
KASSERT(track);
KASSERT(track->lock);
- /* Number of frames to process */
- count = auring_get_contig_used(track->input);
- count = uimin(count, track->mixer->frames_per_block);
- if (count == 0) {
- TRACET(4, track, "count == 0");
+ if (auring_get_contig_used(track->input) == 0) {
+ TRACET(4, track, "input->used == 0");
return;
}
Home |
Main Index |
Thread Index |
Old Index