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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366113

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;