diff options
| author | 2009-05-02 12:54:42 +0000 | |
|---|---|---|
| committer | 2009-05-02 12:54:42 +0000 | |
| commit | c644662f9c45756cb9a8edc7b25e5a91e6dfc22f (patch) | |
| tree | 512dd6a6fa50ec348b6ffeb837cf9bbd614c2ad8 /sys/uvm/uvm_init.c | |
| parent | comment typo, no binary change (diff) | |
| download | wireguard-openbsd-c644662f9c45756cb9a8edc7b25e5a91e6dfc22f.tar.xz wireguard-openbsd-c644662f9c45756cb9a8edc7b25e5a91e6dfc22f.zip | |
a few more memset changes.
two cases of pool_get() + memset(0) -> pool_get(,,,PR_ZERO)
1.5 cases of global variables are already zeroed, so don't zero them.
ok ariane@, comments on stuff i'd missed from blambert@ and cnst@.
Diffstat (limited to 'sys/uvm/uvm_init.c')
| -rw-r--r-- | sys/uvm/uvm_init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/uvm/uvm_init.c b/sys/uvm/uvm_init.c index 82bbb31e780..192a781a74f 100644 --- a/sys/uvm/uvm_init.c +++ b/sys/uvm/uvm_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_init.c,v 1.20 2009/03/20 15:19:04 oga Exp $ */ +/* $OpenBSD: uvm_init.c,v 1.21 2009/05/02 12:54:42 oga Exp $ */ /* $NetBSD: uvm_init.c,v 1.14 2000/06/27 17:29:23 mrg Exp $ */ /* @@ -81,10 +81,8 @@ uvm_init(void) } /* - * step 1: zero the uvm structure + * step 1: set up stats. */ - - memset(&uvm, 0, sizeof(uvm)); averunnable.fscale = FSCALE; /* |
