Module Name:    src
Committed By:   isaki
Date:           Sun Aug 20 05:12:18 UTC 2017

Modified Files:
        src/sys/dev: audio.c

Log Message:
hw_if->set_params is mandatory, so it will never be NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.402 -r1.403 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/audio.c
diff -u src/sys/dev/audio.c:1.402 src/sys/dev/audio.c:1.403
--- src/sys/dev/audio.c:1.402	Sun Aug 20 03:13:04 2017
+++ src/sys/dev/audio.c	Sun Aug 20 05:12:17 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.402 2017/08/20 03:13:04 isaki Exp $	*/
+/*	$NetBSD: audio.c,v 1.403 2017/08/20 05:12:17 isaki Exp $	*/
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsl...@yahoo.com.au>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.402 2017/08/20 03:13:04 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.403 2017/08/20 05:12:17 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -5731,7 +5731,7 @@ audio_set_params(struct audio_softc *sc,
 
 	KASSERT(mutex_owned(sc->sc_lock));
 
-	if (vc == sc->sc_hwvc && sc->hw_if->set_params != NULL) {
+	if (vc == sc->sc_hwvc) {
 		sc->sc_ready = true;
 		if (sc->sc_vchan_params.precision == 8)
 			play->encoding = rec->encoding = AUDIO_ENCODING_SLINEAR;

Reply via email to