Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbsh3/evbsh3 Don't compare scalars against NULL, u...



details:   https://anonhg.NetBSD.org/src/rev/9b766a80bd53
branches:  trunk
changeset: 574745:9b766a80bd53
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 11 07:06:54 2005 +0000

description:
Don't compare scalars against NULL, use 0

diffstat:

 sys/arch/evbsh3/evbsh3/machdep.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 9d6d3e2ffeb1 -r 9b766a80bd53 sys/arch/evbsh3/evbsh3/machdep.c
--- a/sys/arch/evbsh3/evbsh3/machdep.c  Fri Mar 11 07:01:55 2005 +0000
+++ b/sys/arch/evbsh3/evbsh3/machdep.c  Fri Mar 11 07:06:54 2005 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
        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);



Home | Main Index | Thread Index | Old Index