1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Eliminate plim and vtmp local vars in exit1.

No functional changes.

MFC after:	1 week
This commit is contained in:
Mateusz Guzik 2014-07-10 22:54:38 +00:00
parent 30d58d6b39
commit 88f98985aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268514

View File

@ -129,9 +129,7 @@ void
exit1(struct thread *td, int rv)
{
struct proc *p, *nq, *q;
struct vnode *vtmp;
struct vnode *ttyvp = NULL;
struct plimit *plim;
mtx_assert(&Giant, MA_NOTOWNED);
@ -377,17 +375,16 @@ exit1(struct thread *td, int rv)
/*
* Release reference to text vnode
*/
if ((vtmp = p->p_textvp) != NULL) {
if (p->p_textvp != NULL) {
vrele(p->p_textvp);
p->p_textvp = NULL;
vrele(vtmp);
}
/*
* Release our limits structure.
*/
plim = p->p_limit;
lim_free(p->p_limit);
p->p_limit = NULL;
lim_free(plim);
tidhash_remove(td);