From 7d9835b75855936e8f64e5aa0786bcb3a6e60080 Mon Sep 17 00:00:00 2001 From: kleink Date: Tue, 21 Oct 2003 20:59:31 +0000 Subject: [PATCH] Don't use NULL in integer-type assignments/comparisons. --- sys/arch/sparc/sparc/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 6d5d4a72f406..290791ced488 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.238 2003/10/12 17:08:08 pk Exp $ */ +/* $NetBSD: machdep.c,v 1.239 2003/10/21 20:59:31 kleink Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -78,7 +78,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.238 2003/10/12 17:08:08 pk Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.239 2003/10/21 20:59:31 kleink Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_sunos.h" @@ -2217,7 +2217,7 @@ static vaddr_t iobase; return (bus_space_map2(t->parent, addr, size, flags, va, hp)); } - if (iobase == NULL) + if (iobase == 0) iobase = IODEV_BASE; size = round_page(size);