Remove pointless local variable.

Reported by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	6 days
This commit is contained in:
Konstantin Belousov 2020-09-24 12:14:25 +00:00
parent fe5ebb23cc
commit 5dca94ee82

View File

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