summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-07-18 05:46:29 +0000
committerjason <jason@openbsd.org>2002-07-18 05:46:29 +0000
commitcaf4b83ff10591411b70b2d1cdf6ff714559df4f (patch)
treeafbf0e64958e6ceee4bbc3c34b7a4979dde3da32
parentmake reserved pages for the pv_pool variable on physmem (should pool get preload in the future this is to be changed immidiately). map the page above the kernel stack unmapped (diff)
downloadwireguard-openbsd-caf4b83ff10591411b70b2d1cdf6ff714559df4f.tar.xz
wireguard-openbsd-caf4b83ff10591411b70b2d1cdf6ff714559df4f.zip
s/0/NULL in pointer comparison
-rw-r--r--sys/arch/sparc64/dev/psycho.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c
index 5a75e80a57b..6a378db7f04 100644
--- a/sys/arch/sparc64/dev/psycho.c
+++ b/sys/arch/sparc64/dev/psycho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: psycho.c,v 1.20 2002/06/08 18:06:02 jason Exp $ */
+/* $OpenBSD: psycho.c,v 1.21 2002/07/18 05:46:29 jason Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
@@ -755,7 +755,7 @@ psycho_iommu_init(sc, tsbsize)
/* give us a nice name.. */
name = (char *)malloc(32, M_DEVBUF, M_NOWAIT);
- if (name == 0)
+ if (name == NULL)
panic("couldn't malloc iommu name");
snprintf(name, 32, "%s dvma", sc->sc_dev.dv_xname);