summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/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/hppa/dev
parentff4c44726bfd6e9c1fe5b09d86ca20e850023414 (diff)
M_ZERO -> bzero.
ok art@
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r--sys/arch/hppa/dev/mem.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/hppa/dev/mem.c b/sys/arch/hppa/dev/mem.c
index 1fc411dd313..83bfb147613 100644
--- a/sys/arch/hppa/dev/mem.c
+++ b/sys/arch/hppa/dev/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.29 2007/09/22 09:57:40 martin Exp $ */
+/* $OpenBSD: mem.c,v 1.30 2007/09/22 16:21:32 krw Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -383,10 +383,9 @@ mmrw(dev, uio, flags)
* On the first call, allocate and zero a page
* of memory for use with /dev/zero.
*/
- if (zeropage == NULL) {
- zeropage = 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);
break;