Author: kib Date: Thu Sep 24 12:14:25 2020 New Revision: 366113 URL: https://svnweb.freebsd.org/changeset/base/366113
Log: Remove pointless local variable. Reported by: alc Sponsored by: The FreeBSD Foundation MFC after: 6 days Modified: head/sys/kern/kern_exec.c Modified: head/sys/kern/kern_exec.c ============================================================================== --- head/sys/kern/kern_exec.c Thu Sep 24 10:57:39 2020 (r366112) +++ head/sys/kern/kern_exec.c Thu Sep 24 12:14:25 2020 (r366113) @@ -968,11 +968,8 @@ exec_fail: 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; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"