diff options
author | 2002-10-29 18:30:21 +0000 | |
---|---|---|
committer | 2002-10-29 18:30:21 +0000 | |
commit | 93cbfefa847e712438e489eed16a4a5aa0e721e9 (patch) | |
tree | 384c5ada353ead0b220db134e622a4e263e371ba /sys/uvm/uvm_user.c | |
parent | danger will robinson, danger (diff) | |
download | wireguard-openbsd-93cbfefa847e712438e489eed16a4a5aa0e721e9.tar.xz wireguard-openbsd-93cbfefa847e712438e489eed16a4a5aa0e721e9.zip |
Since memory deallocation can't fail, remove the error return from
uvm_unmap, uvm_deallocate and a few other functions.
Simplifies some code and reduces diff to the UBC branch.
Diffstat (limited to 'sys/uvm/uvm_user.c')
-rw-r--r-- | sys/uvm/uvm_user.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/uvm/uvm_user.c b/sys/uvm/uvm_user.c index 01677547711..f08d8674603 100644 --- a/sys/uvm/uvm_user.c +++ b/sys/uvm/uvm_user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_user.c,v 1.9 2001/12/19 08:58:07 art Exp $ */ +/* $OpenBSD: uvm_user.c,v 1.10 2002/10/29 18:30:21 art Exp $ */ /* $NetBSD: uvm_user.c,v 1.8 2000/06/27 17:29:37 mrg Exp $ */ /* @@ -50,7 +50,7 @@ * uvm_deallocate: deallocate memory (unmap) */ -int +void uvm_deallocate(map, start, size) vm_map_t map; vaddr_t start; @@ -60,9 +60,8 @@ uvm_deallocate(map, start, size) if (map == NULL) panic("uvm_deallocate with null map"); - if (size == (vaddr_t) 0) - return (KERN_SUCCESS); - - return(uvm_unmap(map, trunc_page(start), round_page(start+size))); + if (size == 0) + return; + uvm_unmap(map, trunc_page(start), round_page(start+size)); } |