summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-18 05:46:30 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-18 05:46:30 +0000
commit58277074e3e354b7bbce4f4f0f8c25ae270f47cb (patch)
tree6f7f9efb9502e11ac056d5f2af6bbddae010208f /sys
parent4ecc3f854ec00bbfaf1815d308f11fca93183e1e (diff)
s/0/NULL in pointer comparison
Diffstat (limited to 'sys')
-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);