Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 2010 08:40:37 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215553 - head/sys/netinet
Message-ID:  <201011200840.oAK8ebJd005084@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011200840.oAK8ebJd005084>