Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 Don't compare an integer to NULL.
details: https://anonhg.NetBSD.org/src/rev/33cf6cc084de
branches: trunk
changeset: 553912:33cf6cc084de
user: uwe <uwe%NetBSD.org@localhost>
date: Wed Oct 22 21:10:15 2003 +0000
description:
Don't compare an integer to NULL.
diffstat:
sys/arch/sh3/sh3/exception.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d9810819077 -r 33cf6cc084de sys/arch/sh3/sh3/exception.c
--- a/sys/arch/sh3/sh3/exception.c Wed Oct 22 21:09:09 2003 +0000
+++ b/sys/arch/sh3/sh3/exception.c Wed Oct 22 21:10:15 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exception.c,v 1.11 2003/10/13 18:08:45 cl Exp $ */
+/* $NetBSD: exception.c,v 1.12 2003/10/22 21:10:15 uwe Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.11 2003/10/13 18:08:45 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.12 2003/10/22 21:10:15 uwe Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -179,7 +179,7 @@
case EXPEVT_ADDR_ERR_ST:
KDASSERT(l->l_md.md_pcb->pcb_onfault != NULL);
tf->tf_spc = (int)l->l_md.md_pcb->pcb_onfault;
- if (tf->tf_spc == NULL)
+ if (tf->tf_spc == 0)
goto do_panic;
break;
Home |
Main Index |
Thread Index |
Old Index