summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-09-22 16:21:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-09-22 16:21:33 +0000
commita64a0fba9e2c0404ddfd4287f37f5c0a1be565e2 (patch)
treef3d5836b8f295070afdf605e7148ff3afecad398 /sys/arch/mvmeppc/dev
parentff4c44726bfd6e9c1fe5b09d86ca20e850023414 (diff)
M_ZERO -> bzero.
ok art@
Diffstat (limited to 'sys/arch/mvmeppc/dev')
-rw-r--r--sys/arch/mvmeppc/dev/mem.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/mvmeppc/dev/mem.c b/sys/arch/mvmeppc/dev/mem.c
index 0f466ec6ab6..52630da8254 100644
--- a/sys/arch/mvmeppc/dev/mem.c
+++ b/sys/arch/mvmeppc/dev/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.8 2005/12/17 07:31:26 miod Exp $ */
+/* $OpenBSD: mem.c,v 1.9 2007/09/22 16:21:32 krw Exp $ */
/* $NetBSD: mem.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -133,10 +133,9 @@ mmrw(dev, uio, flags)
c = iov->iov_len;
break;
}
- if (zeropage == NULL) {
- zeropage = (caddr_t)malloc(PAGE_SIZE, M_TEMP, M_WAITOK);
- bzero(zeropage, PAGE_SIZE);
- }
+ if (zeropage == NULL)
+ zeropage = malloc(PAGE_SIZE, M_TEMP,
+ M_WAITOK | M_ZERO);
c = min(iov->iov_len, PAGE_SIZE);
error = uiomove(zeropage, c, uio);
continue;