summaryrefslogtreecommitdiff
path: root/sys/arch/vax/mbus/mbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/vax/mbus/mbus.c')
-rw-r--r--sys/arch/vax/mbus/mbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/mbus/mbus.c b/sys/arch/vax/mbus/mbus.c
index 5a4aad494fb..7663aab4235 100644
--- a/sys/arch/vax/mbus/mbus.c
+++ b/sys/arch/vax/mbus/mbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbus.c,v 1.3 2010/09/20 06:33:48 matthew Exp $ */
+/* $OpenBSD: mbus.c,v 1.4 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
@@ -126,7 +126,7 @@ mbus_attach(struct device *parent, struct device *self, void *aux)
pa = MBUS_SLOT_BASE(mid);
fbic = vax_map_physmem(pa + FBIC_BASE, 1);
- if (fbic == NULL)
+ if (fbic == 0)
panic("unable to map slot %d registers", mid);
if (badaddr((caddr_t)(fbic + FBIC_MODTYPE), 4) != 0)
@@ -170,7 +170,7 @@ mbus_attach(struct device *parent, struct device *self, void *aux)
ms->ms_fbic[1].regs = ms->ms_fbic[0].regs;
ms->ms_nfbic = 2;
fbic = vax_map_physmem(pa + FBIC_CPUA_BASE, 1);
- if (fbic == NULL)
+ if (fbic == 0)
panic("unable to map slot %d registers", mid);
ms->ms_fbic[0].base = pa + FBIC_CPUA_BASE;
ms->ms_fbic[0].regs = fbic;