From 3beedd2b53893691a3112da5b809100fb8d50aca Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 11 Mar 2005 07:06:54 +0000 Subject: [PATCH] Don't compare scalars against NULL, use 0 --- sys/arch/evbsh3/evbsh3/machdep.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arch/evbsh3/evbsh3/machdep.c b/sys/arch/evbsh3/evbsh3/machdep.c index 10d068b307d4..06fdf1e0d1d3 100644 --- a/sys/arch/evbsh3/evbsh3/machdep.c +++ b/sys/arch/evbsh3/evbsh3/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.51 2004/03/24 15:34:48 atatat Exp $ */ +/* $NetBSD: machdep.c,v 1.52 2005/03/11 07:06:54 matt Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.51 2004/03/24 15:34:48 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.52 2005/03/11 07:06:54 matt Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -754,6 +754,11 @@ intc_intr(int ssr, int spc, int ssp) case CPU_PRODUCT_7750S: evtcode = _reg_read_4(SH4_INTEVT); break; + default: +#ifdef DIAGNOSTIC + panic("intr_intc: cpu_product %d unhandled!", cpu_product); +#endif + return; } ih = EVTCODE_IH(evtcode);