Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/playstation2/ee Fix two more instances of paddr_t v...



details:   https://anonhg.NetBSD.org/src/rev/bd77eb4858dc
branches:  trunk
changeset: 553906:bd77eb4858dc
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 22 20:26:32 2003 +0000

description:
Fix two more instances of paddr_t vs. NULL (use 0 instead).

diffstat:

 sys/arch/playstation2/ee/gsfb.c |  6 +++---
 sys/arch/playstation2/ee/sif.c  |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8f07420146e3 -r bd77eb4858dc sys/arch/playstation2/ee/gsfb.c
--- a/sys/arch/playstation2/ee/gsfb.c   Wed Oct 22 20:22:26 2003 +0000
+++ b/sys/arch/playstation2/ee/gsfb.c   Wed Oct 22 20:26:32 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gsfb.c,v 1.7 2003/07/15 02:54:37 lukem Exp $   */
+/*     $NetBSD: gsfb.c,v 1.8 2003/10/22 20:26:32 he Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gsfb.c,v 1.7 2003/07/15 02:54:37 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gsfb.c,v 1.8 2003/10/22 20:26:32 he Exp $");
 
 #include "debug_playstation2.h"
 
@@ -531,7 +531,7 @@
 _gsfb_mmap(void *v, off_t offset, int prot)
 {
 
-       return (NULL); /* can't mmap */
+       return (0); /* can't mmap */
 }
 
 int
diff -r 8f07420146e3 -r bd77eb4858dc sys/arch/playstation2/ee/sif.c
--- a/sys/arch/playstation2/ee/sif.c    Wed Oct 22 20:22:26 2003 +0000
+++ b/sys/arch/playstation2/ee/sif.c    Wed Oct 22 20:26:32 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sif.c,v 1.2 2003/07/15 02:54:37 lukem Exp $    */
+/*     $NetBSD: sif.c,v 1.3 2003/10/22 20:26:32 he Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sif.c,v 1.2 2003/07/15 02:54:37 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sif.c,v 1.3 2003/10/22 20:26:32 he Exp $");
 
 #include "debug_playstation2.h"
 
@@ -115,7 +115,7 @@
 
        seg->iop_paddr = iopmem_alloc(seg->size);
 
-       if (seg->iop_paddr == NULL) {
+       if (seg->iop_paddr == 0) {
                printf("%s: can't allocate IOP memory.\n", __FUNCTION__);
                DPRINTF("request = %d byte, current total = %#x\n",
                    size, __spd_total_alloc);



Home | Main Index | Thread Index | Old Index