svn commit: r268514 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Thu Jul 10 22:54:39 UTC 2014


Author: mjg
Date: Thu Jul 10 22:54:38 2014
New Revision: 268514
URL: http://svnweb.freebsd.org/changeset/base/268514

Log:
  Eliminate plim and vtmp local vars in exit1.
  
  No functional changes.
  
  MFC after:	1 week

Modified:
  head/sys/kern/kern_exit.c

Modified: head/sys/kern/kern_exit.c
==============================================================================
--- head/sys/kern/kern_exit.c	Thu Jul 10 22:00:22 2014	(r268513)
+++ head/sys/kern/kern_exit.c	Thu Jul 10 22:54:38 2014	(r268514)
@@ -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);
 


More information about the svn-src-head mailing list