From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: Re: [PATCH] ipvs: Remove unused net variable from ip_vs_out Date: Tue, 6 Oct 2015 16:33:36 +0900 Message-ID: <20151006073328.GA4826@verge.net.au> References: <1443746619-3503-1-git-send-email-horms@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, Wensong Zhang , "Eric W. Biederman" To: Julian Anastasov Return-path: Content-Disposition: inline In-Reply-To: Sender: lvs-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, Oct 06, 2015 at 09:35:29AM +0300, Julian Anastasov wrote: > > Hello, > > On Fri, 2 Oct 2015, Simon Horman wrote: > > > Since 6f2bcea9917d ("ipvs: Pass ipvs into ip_vs_in_icmp and ip_vs_in_icmp_v6") > > the net net variable in ip_vs_out() appears to be unused so remove it. > > > > Signed-off-by: Simon Horman > > --- > > net/netfilter/ipvs/ip_vs_core.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c > > index d08df435c2aa..72b6a44ea9de 100644 > > --- a/net/netfilter/ipvs/ip_vs_core.c > > +++ b/net/netfilter/ipvs/ip_vs_core.c > > @@ -1172,7 +1172,6 @@ drop: > > static unsigned int > > ip_vs_out(struct netns_ipvs *ipvs, unsigned int hooknum, struct sk_buff *skb, int af) > > { > > - struct net *net = ipvs->net; > > So, this line should be moved into the block > where the var is used? Indeed, I'll send an updated patch.