summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-10 17:16:52 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-10 17:16:52 +0000
commitbea98c3c1e7636134816015a8e6b1880582e91b7 (patch)
treeb42882207b2d762a0cbb0a9621bf7ba629026aea
parent51dc6b6bd22e259df1444a54ecc6d223675367e5 (diff)
A last few NULL -> 0 corrections.
-rw-r--r--sys/arch/mips64/mips64/cpu.c4
-rw-r--r--sys/arch/sgi/sgi/ip30_machdep.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c
index b01259b5845..37240e67095 100644
--- a/sys/arch/mips64/mips64/cpu.c
+++ b/sys/arch/mips64/mips64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.38 2011/04/07 15:30:15 miod Exp $ */
+/* $OpenBSD: cpu.c,v 1.39 2011/04/10 17:16:51 miod Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se)
@@ -434,7 +434,7 @@ alloc_contiguous_pages(size_t size)
error = uvm_pglistalloc(roundup(size, USPACE), 0, 0xffffffff, 0, 0,
&mlist, 1, UVM_PLA_NOWAIT | UVM_PLA_ZERO);
if (error)
- return NULL;
+ return 0;
m = TAILQ_FIRST(&mlist);
pa = VM_PAGE_TO_PHYS(m);
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c
index 5447e2632c2..95e53b04cd4 100644
--- a/sys/arch/sgi/sgi/ip30_machdep.c
+++ b/sys/arch/sgi/sgi/ip30_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip30_machdep.c,v 1.45 2011/04/03 22:34:54 miod Exp $ */
+/* $OpenBSD: ip30_machdep.c,v 1.46 2011/04/10 17:16:51 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -519,7 +519,7 @@ hw_cpu_boot_secondary(struct cpu_info *ci)
stackaddr, lparam, rparam, idleflag);
#endif
kstack = alloc_contiguous_pages(USPACE);
- if (kstack == NULL)
+ if (kstack == 0)
panic("unable to allocate idle stack");
ci->ci_curprocpaddr = (void *)kstack;