Back out the following commit and apply the real fix.
A variable was actually used in a wrong way. > revision 1.20 > date: 2003/10/25 21:31:43; author: christos; state: Exp; lines: +3 -3 > Fix uninitialized variable warnings.
This commit is contained in:
parent
2872df37e8
commit
315a88c214
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: cmpci.c,v 1.22 2003/12/04 13:57:31 keihan Exp $ */
|
/* $NetBSD: cmpci.c,v 1.23 2003/12/06 09:32:22 itohy Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.22 2003/12/04 13:57:31 keihan Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.23 2003/12/06 09:32:22 itohy Exp $");
|
||||||
|
|
||||||
#if defined(AUDIO_DEBUG) || defined(DEBUG)
|
#if defined(AUDIO_DEBUG) || defined(DEBUG)
|
||||||
#define DPRINTF(x) if (cmpcidebug) printf x
|
#define DPRINTF(x) if (cmpcidebug) printf x
|
||||||
|
@ -1294,14 +1294,14 @@ cmpci_set_mixer_gain(sc, port)
|
||||||
struct cmpci_softc *sc;
|
struct cmpci_softc *sc;
|
||||||
int port;
|
int port;
|
||||||
{
|
{
|
||||||
int src = 0; /* XXX: gcc */
|
int src;
|
||||||
int bits, mask;
|
int bits, mask;
|
||||||
|
|
||||||
switch (port) {
|
switch (port) {
|
||||||
case CMPCI_MIC_VOL:
|
case CMPCI_MIC_VOL:
|
||||||
cmpci_mixerreg_write(sc, CMPCI_SB16_MIXER_MIC,
|
cmpci_mixerreg_write(sc, CMPCI_SB16_MIXER_MIC,
|
||||||
CMPCI_ADJUST_MIC_GAIN(sc, sc->sc_gain[port][CMPCI_LR]));
|
CMPCI_ADJUST_MIC_GAIN(sc, sc->sc_gain[port][CMPCI_LR]));
|
||||||
break;
|
return;
|
||||||
case CMPCI_MASTER_VOL:
|
case CMPCI_MASTER_VOL:
|
||||||
src = CMPCI_SB16_MIXER_MASTER_L;
|
src = CMPCI_SB16_MIXER_MASTER_L;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue