Remove pointless local variable.
Reported by: alc Sponsored by: The FreeBSD Foundation MFC after: 6 days
This commit is contained in:
parent
fe5ebb23cc
commit
5dca94ee82
@ -968,11 +968,8 @@ do_execve(struct thread *td, struct image_args *args, struct mac *mac_p,
|
||||
void
|
||||
exec_cleanup(struct thread *td, struct vmspace *oldvmspace)
|
||||
{
|
||||
struct proc *p;
|
||||
|
||||
p = td->td_proc;
|
||||
if ((td->td_pflags & TDP_EXECVMSPC) != 0) {
|
||||
KASSERT(p->p_vmspace != oldvmspace,
|
||||
KASSERT(td->td_proc->p_vmspace != oldvmspace,
|
||||
("oldvmspace still used"));
|
||||
vmspace_free(oldvmspace);
|
||||
td->td_pflags &= ~TDP_EXECVMSPC;
|
||||
|
Loading…
Reference in New Issue
Block a user