diff options
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)); } |
