Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Remove unused code from audio_set_params.



details:   https://anonhg.NetBSD.org/src/rev/6a214dedc1a2
branches:  trunk
changeset: 825677:6a214dedc1a2
user:      nat <nat%NetBSD.org@localhost>
date:      Fri Jul 28 03:29:19 2017 +0000

description:
Remove unused code from audio_set_params.

Addresses PR kern/52434.

diffstat:

 sys/dev/audio.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r 0ae263abcb32 -r 6a214dedc1a2 sys/dev/audio.c
--- a/sys/dev/audio.c   Fri Jul 28 02:53:54 2017 +0000
+++ b/sys/dev/audio.c   Fri Jul 28 03:29:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.373 2017/07/28 02:53:54 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.374 2017/07/28 03:29:19 nat 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.373 2017/07/28 02:53:54 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.374 2017/07/28 03:29:19 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -5873,16 +5873,10 @@
            VAUDIO_NFORMATS, AUMODE_PLAY, play, true, pfil) < 0)
                return EINVAL;
 
-       if (pfil->req_size > 0)
-               play = &pfil->filters[0].param;
-
        if (setmode & AUMODE_RECORD && auconv_set_converter(sc->sc_format,
            VAUDIO_NFORMATS, AUMODE_RECORD, rec, true, rfil) < 0)
                return EINVAL;
 
-       if (rfil->req_size > 0)
-               rec = &rfil->filters[0].param;
-
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index