From dc840543ff352c3c95a05e59ab5b08fb49994e1c Mon Sep 17 00:00:00 2001 From: lstewart Date: Sat, 20 Nov 2010 08:40:37 +0000 Subject: Fix a minor code redundancy nit. MFC after: 3 days --- sys/netinet/siftr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/netinet/siftr.c') diff --git a/sys/netinet/siftr.c b/sys/netinet/siftr.c index 254bea8..79af9dc 100644 --- a/sys/netinet/siftr.c +++ b/sys/netinet/siftr.c @@ -736,14 +736,12 @@ siftr_findinpcb(int ipver, struct ip *ip, struct mbuf *m, uint16_t sport, 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); } -- cgit v1.1