Remove unused (but initialized) variable 'objsize' from vm_mmap()

This commit is contained in:
Peter Wemm 2005-09-20 22:08:27 +00:00
parent d39ab32b08
commit 749474f2f5

View File

@ -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 >