svn commit: r215553 - head/sys/netinet

Lawrence Stewart lstewart at FreeBSD.org
Sat Nov 20 08:40:37 UTC 2010


Author: lstewart
Date: Sat Nov 20 08:40:37 2010
New Revision: 215553
URL: http://svn.freebsd.org/changeset/base/215553

Log:
  Fix a minor code redundancy nit.
  
  MFC after:	3 days

Modified:
  head/sys/netinet/siftr.c

Modified: head/sys/netinet/siftr.c
==============================================================================
--- head/sys/netinet/siftr.c	Sat Nov 20 07:36:43 2010	(r215552)
+++ head/sys/netinet/siftr.c	Sat Nov 20 08:40:37 2010	(r215553)
@@ -736,14 +736,12 @@ siftr_findinpcb(int ipver, struct ip *ip
 			ss->nskip_in_inpcb++;
 		else
 			ss->nskip_out_inpcb++;
-
-		INP_INFO_RUNLOCK(&V_tcbinfo);
 	} else {
 		/* Acquire the inpcb lock. */
 		INP_UNLOCK_ASSERT(inp);
 		INP_RLOCK(inp);
-		INP_INFO_RUNLOCK(&V_tcbinfo);
 	}
+	INP_INFO_RUNLOCK(&V_tcbinfo);
 
 	return (inp);
 }


More information about the svn-src-head mailing list