summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorxtraeme <xtraeme@NetBSD.org>2006-11-01 09:36:52 +0000
committerxtraeme <xtraeme@NetBSD.org>2006-11-01 09:36:52 +0000
commit5975efbaee38db9bd7a377181cde51bf92f6845d (patch)
tree5bb7e3133ad2b206cfd4f78166d5229e682c587f /sys/dev
parent86a24f7e0c7ecbf5a9b4b2750e58673e29e23b59 (diff)
Initialize old[pr]blksize to 0 to avoid gcc warnings.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/audio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index cdbd7219f86..e48e0fbc8a0 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.212 2006/11/01 06:39:19 cbiere Exp $ */
+/* $NetBSD: audio.c,v 1.213 2006/11/01 09:36:52 xtraeme Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.212 2006/11/01 06:39:19 cbiere Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.213 2006/11/01 09:36:52 xtraeme Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -3145,6 +3145,8 @@ audiosetinfo(struct audio_softc *sc, struct audio_info *ai)
boolean_t cleared, modechange, pausechange;
u_char balance;
+ oldpblksize = oldrblksize = 0;
+
hw = sc->hw_if;
if (hw == NULL) /* HW has not attached */
return ENXIO;