summaryrefslogtreecommitdiff
path: root/sys/arch/vax/vsa
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
commit470f59fa3f11b7317fc5907cfef6043f2104bcc6 (patch)
tree50aedec19587d2927b807e6719da0022055c56df /sys/arch/vax/vsa
parent1d2ed5cc87538f3c2a6389c586a609a8b73610b7 (diff)
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/arch/vax/vsa')
-rw-r--r--sys/arch/vax/vsa/lcg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/lcg.c b/sys/arch/vax/vsa/lcg.c
index a714b10edae..529c577b230 100644
--- a/sys/arch/vax/vsa/lcg.c
+++ b/sys/arch/vax/vsa/lcg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcg.c,v 1.15 2010/12/26 15:41:00 miod Exp $ */
+/* $OpenBSD: lcg.c,v 1.16 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -235,7 +235,7 @@ lcg_attach(struct device *parent, struct device *self, void *aux)
*/
if (!console) {
tmp = vax_map_physmem(LCG_CONFIG_ADDR, 1);
- if (tmp == NULL) {
+ if (tmp == 0) {
printf("\n%s: can not map configuration register\n",
self->dv_xname);
return;