Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcsh/dev/hd64465 vaddr_t is not a pointer



details:   https://anonhg.NetBSD.org/src/rev/9a08aa8c1f72
branches:  trunk
changeset: 554891:9a08aa8c1f72
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Nov 03 20:32:17 2003 +0000

description:
vaddr_t is not a pointer

diffstat:

 sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 4a804116ea3c -r 9a08aa8c1f72 sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
--- a/sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c        Mon Nov 03 20:30:14 2003 +0000
+++ b/sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c        Mon Nov 03 20:32:17 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hd64465pcmcia.c,v 1.13 2003/07/15 02:29:37 lukem Exp $ */
+/*     $NetBSD: hd64465pcmcia.c,v 1.14 2003/11/03 20:32:17 jdolecek Exp $      */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd64465pcmcia.c,v 1.13 2003/07/15 02:29:37 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd64465pcmcia.c,v 1.14 2003/11/03 20:32:17 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -226,7 +226,7 @@
        sc->sc_area5 = __sh_hd64465_map_2page(0x14000000); /* area 5 */
        sc->sc_area6 = __sh_hd64465_map_2page(0x18000000); /* area 6 */
 
-       if (sc->sc_area5 == NULL || sc->sc_area6 == NULL) {
+       if (sc->sc_area5 == 0 || sc->sc_area6 == 0) {
                printf("%s: can't map memory.\n", sc->sc_dev.dv_xname);
                if (sc->sc_area5)
                        uvm_km_free(kernel_map, sc->sc_area5, 0x03000000);
@@ -799,7 +799,7 @@
 
        /* allocate kernel virtual */
        v = va = uvm_km_valloc(kernel_map, 0x03000000);
-       if (va == NULL) {
+       if (va == 0) {
                PRINTF("can't allocate virtual for paddr 0x%08x\n",
                    (unsigned)pa);
 



Home | Main Index | Thread Index | Old Index