Remove an unnecessary and inconsistently used variable from exec_new_vmspace().

This commit is contained in:
Alan Cox 2002-03-26 19:20:04 +00:00
parent d306122d60
commit cb100b25ce

View File

@ -583,7 +583,6 @@ exec_new_vmspace(imgp)
struct execlist *ep;
struct vmspace *vmspace = imgp->proc->p_vmspace;
vm_offset_t stack_addr = USRSTACK - maxssiz;
vm_map_t map = &vmspace->vm_map;
GIANT_REQUIRED;
@ -604,11 +603,10 @@ exec_new_vmspace(imgp)
if (vmspace->vm_shm)
shmexit(imgp->proc);
pmap_remove_pages(vmspace_pmap(vmspace), 0, VM_MAXUSER_ADDRESS);
vm_map_remove(map, 0, VM_MAXUSER_ADDRESS);
vm_map_remove(&vmspace->vm_map, 0, VM_MAXUSER_ADDRESS);
} else {
vmspace_exec(imgp->proc);
vmspace = imgp->proc->p_vmspace;
map = &vmspace->vm_map;
}
/* Allocate a new stack */