Fix another instance where `offset' might have been used uninitialized,

by adding a non-DEBUG default: and a panic().
This commit is contained in:
he 2003-11-09 14:26:15 +00:00
parent cd75387049
commit b158245614
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: clmpcc_pcctwo.c,v 1.7 2003/11/07 19:16:01 dsl Exp $ */
/* $NetBSD: clmpcc_pcctwo.c,v 1.8 2003/11/09 14:26:15 he Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.7 2003/11/07 19:16:01 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.8 2003/11/09 14:26:15 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -209,12 +209,13 @@ clmpcc_pcctwo_consiackhook(sc, which)
case CLMPCC_IACK_TX:
offset = PCC2REG_SCC_TX_PIACK;
break;
#ifdef DEBUG
default:
#ifdef DEBUG
printf("%s: Invalid IACK number '%d'\n",
sc->sc_dev.dv_xname, which);
panic("clmpcc_pcctwo_consiackhook");
#endif
panic("clmpcc_pcctwo_iackhook %d", which);
}
#ifdef MVME68K