diff options
author | peter <peter@FreeBSD.org> | 2005-09-20 22:08:27 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-09-20 22:08:27 +0000 |
commit | eb46ffb0671c2ef8a8807c540cdd252c558dfdeb (patch) | |
tree | cbb142f0c7d6ecd43c5fef35c5ee7ca78cdb00e7 /sys | |
parent | 589e64b00c38e178c11cdd28df417391b2781a46 (diff) | |
download | FreeBSD-src-eb46ffb0671c2ef8a8807c540cdd252c558dfdeb.zip FreeBSD-src-eb46ffb0671c2ef8a8807c540cdd252c558dfdeb.tar.gz |
Remove unused (but initialized) variable 'objsize' from vm_mmap()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_mmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 15368c1..7c9e56d 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -1236,14 +1236,13 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, boolean_t fitit; vm_object_t object; int rv = KERN_SUCCESS; - vm_ooffset_t objsize; int docow, error; struct thread *td = curthread; if (size == 0) return (0); - objsize = size = round_page(size); + size = round_page(size); PROC_LOCK(td->td_proc); if (td->td_proc->p_vmspace->vm_map.size + size > |