summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
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/sparc64
parentff4c44726bfd6e9c1fe5b09d86ca20e850023414 (diff)
M_ZERO -> bzero.
ok art@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/mem.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/sparc64/sparc64/mem.c b/sys/arch/sparc64/sparc64/mem.c
index 07739c3333f..7f301dd2bbf 100644
--- a/sys/arch/sparc64/sparc64/mem.c
+++ b/sys/arch/sparc64/sparc64/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.9 2007/01/12 22:09:08 kettenis Exp $ */
+/* $OpenBSD: mem.c,v 1.10 2007/09/22 16:21:32 krw Exp $ */
/* $NetBSD: mem.c,v 1.18 2001/04/24 04:31:12 thorpej Exp $ */
/*
@@ -170,11 +170,9 @@ mmrw(dev, uio, flags)
uio->uio_resid = 0;
return(0);
}
- if (zeropage == NULL) {
- zeropage = (caddr_t)
- malloc(NBPG, M_TEMP, M_WAITOK);
- bzero(zeropage, NBPG);
- }
+ if (zeropage == NULL)
+ zeropage = malloc(NBPG, M_TEMP,
+ M_WAITOK | M_ZERO);
c = min(iov->iov_len, NBPG);
error = uiomove(zeropage, c, uio);
break;