diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-10-29 18:30:22 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-10-29 18:30:22 +0000 |
commit | c8811b30c30f967b1b25387b30bc1cfd2e619a84 (patch) | |
tree | 7f1dbc5c260750693c2baf5bd8bb4e20787c0a3f /sys/uvm/uvm_mmap.c | |
parent | e58a32400cb5873b3caa54fb806f18fd1d173388 (diff) |
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_mmap.c')
-rw-r--r-- | sys/uvm/uvm_mmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index b97c486ee0d..b8f865d81ae 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.35 2002/08/23 00:53:51 pvalchev Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.36 2002/10/29 18:30:21 art Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -685,7 +685,7 @@ sys_munmap(p, v, retval) /* * doit! */ - (void) uvm_unmap_remove(map, addr, addr + size, &dead_entries); + uvm_unmap_remove(map, addr, addr + size, &dead_entries); vm_map_unlock(map); /* and unlock */ @@ -1098,7 +1098,7 @@ uvm_mmap(map, addr, size, prot, maxprot, flags, handle, foff, locklimit) if (*addr & PAGE_MASK) return(EINVAL); uvmflag |= UVM_FLAG_FIXED; - (void) uvm_unmap(map, *addr, *addr + size); /* zap! */ + uvm_unmap(map, *addr, *addr + size); /* zap! */ } /* @@ -1221,7 +1221,7 @@ uvm_mmap(map, addr, size, prot, maxprot, flags, handle, foff, locklimit) retval = KERN_RESOURCE_SHORTAGE; vm_map_unlock(map); /* unmap the region! */ - (void) uvm_unmap(map, *addr, *addr + size); + uvm_unmap(map, *addr, *addr + size); goto bad; } /* @@ -1232,7 +1232,7 @@ uvm_mmap(map, addr, size, prot, maxprot, flags, handle, foff, locklimit) FALSE, UVM_LK_ENTER); if (retval != KERN_SUCCESS) { /* unmap the region! */ - (void) uvm_unmap(map, *addr, *addr + size); + uvm_unmap(map, *addr, *addr + size); goto bad; } return (0); |