Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Fix over cautious compiler error - setm...
details: https://anonhg.NetBSD.org/src/rev/36588a0d34d6
branches: trunk
changeset: 319074:36588a0d34d6
user: nat <nat%NetBSD.org@localhost>
date: Tue May 15 10:23:03 2018 +0000
description:
Fix over cautious compiler error - setmode may not be initialized.
diffstat:
sys/dev/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 7df1ebc7fea0 -r 36588a0d34d6 sys/dev/audio.c
--- a/sys/dev/audio.c Tue May 15 10:17:55 2018 +0000
+++ b/sys/dev/audio.c Tue May 15 10:23:03 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.454 2018/05/15 00:28:00 nat Exp $ */
+/* $NetBSD: audio.c,v 1.455 2018/05/15 10:23:03 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.454 2018/05/15 00:28:00 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.455 2018/05/15 10:23:03 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -4567,6 +4567,7 @@
pp = vc->sc_pparams; /* Temporary encoding storage in */
rp = vc->sc_rparams; /* case setting the modes fails. */
nr = np = 0;
+ setmode = 0;
if (vc == &sc->sc_mixring)
goto done;
@@ -4624,7 +4625,6 @@
if (np > 0 && (error = audio_check_params(&pp)))
return error;
- setmode = 0;
if (nr > 0) {
if (!cleared) {
audio_clear_intr_unlocked(sc, vc);
Home |
Main Index |
Thread Index |
Old Index