Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Compare pointer against NULL not 0.



details:   https://anonhg.NetBSD.org/src/rev/8dce441d1524
branches:  trunk
changeset: 782268:8dce441d1524
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 24 21:31:06 2012 +0000

description:
Compare pointer against NULL not 0.

diffstat:

 sys/arch/arm/arm32/arm32_kvminit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9f7a9356171c -r 8dce441d1524 sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c        Wed Oct 24 21:23:55 2012 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c        Wed Oct 24 21:31:06 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_kvminit.c,v 1.13 2012/10/21 22:04:05 matt Exp $  */
+/*     $NetBSD: arm32_kvminit.c,v 1.14 2012/10/24 21:31:06 skrll Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -122,7 +122,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.13 2012/10/21 22:04:05 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.14 2012/10/24 21:31:06 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -248,7 +248,7 @@
 add_pages(struct bootmem_info *bmi, pv_addr_t *pv)
 {
        pv_addr_t **pvp = &SLIST_FIRST(&bmi->bmi_chunks);
-       while ((*pvp) != 0 && (*pvp)->pv_va <= pv->pv_va) {
+       while ((*pvp) != NULL && (*pvp)->pv_va <= pv->pv_va) {
                pv_addr_t * const pv0 = (*pvp);
                KASSERT(SLIST_NEXT(pv0, pv_list) == NULL || pv0->pv_pa < SLIST_NEXT(pv0, pv_list)->pv_pa);
                if (concat_pvaddr(pv0, pv)) {



Home | Main Index | Thread Index | Old Index