summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vx.c
diff options
context:
space:
mode:
authorSteve Murphree <smurph@cvs.openbsd.org>2001-12-22 18:45:36 +0000
committerSteve Murphree <smurph@cvs.openbsd.org>2001-12-22 18:45:36 +0000
commit237902f111601f9346828cb265c832bcee546a16 (patch)
treefffa3d075dadcd013078a3d0d9af7d601f7556ec /sys/arch/mvme88k/dev/vx.c
parent96f7d97c76ba2b501d194732590931c651f0f592 (diff)
Correct badvaddr() usage.
Diffstat (limited to 'sys/arch/mvme88k/dev/vx.c')
-rw-r--r--sys/arch/mvme88k/dev/vx.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/mvme88k/dev/vx.c b/sys/arch/mvme88k/dev/vx.c
index af00446df81..cfe002d53ff 100644
--- a/sys/arch/mvme88k/dev/vx.c
+++ b/sys/arch/mvme88k/dev/vx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vx.c,v 1.15 2001/12/19 07:04:41 smurph Exp $ */
+/* $OpenBSD: vx.c,v 1.16 2001/12/22 18:45:35 smurph Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
* All rights reserved.
@@ -205,15 +205,9 @@ vxmatch(parent, self, aux)
vx_reg = (struct vxreg *)ca->ca_vaddr;
board_addr = (unsigned int)ca->ca_vaddr;
- if (!badvaddr((unsigned)&vx_reg->ipc_cr, 1)) {
- if (ca->ca_vec & 0x03) {
- printf("xvt: bad vector 0x%x\n", ca->ca_vec);
+ if (badvaddr((unsigned)&vx_reg->ipc_cr, 1))
return (0);
- }
return (1);
- } else {
- return (0);
- }
}
void