Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932937AbdCUPuM (ORCPT ); Tue, 21 Mar 2017 11:50:12 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:33763 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932716AbdCUPuJ (ORCPT ); Tue, 21 Mar 2017 11:50:09 -0400 Subject: Re: [PATCH 2/2] netfilter: ipvs: Compress return logic To: simran singhal , pablo@netfilter.org References: <1490102599-27579-1-git-send-email-singhalsimran0@gmail.com> <1490102599-27579-3-git-send-email-singhalsimran0@gmail.com> Cc: kadlec@blackhole.kfki.hu, davem@davemloft.net, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com, wensong@linux-vs.org, horms@verge.net.au, ja@ssi.bg From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <144902e5-76d4-f767-7b86-ba07d57cf5a7@cogentembedded.com> Date: Tue, 21 Mar 2017 18:49:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1490102599-27579-3-git-send-email-singhalsimran0@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 37 Hello! On 03/21/2017 04:23 PM, simran singhal wrote: > Simplify function returns by merging assignment and return into > one command line. You mean "one statement"? > Signed-off-by: simran singhal > --- > > --This is my contribution to the netfilter project of > Outreachy Round 14. > > net/netfilter/ipvs/ip_vs_ftp.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c > index d30c327..c93c937 100644 > --- a/net/netfilter/ipvs/ip_vs_ftp.c > +++ b/net/netfilter/ipvs/ip_vs_ftp.c > @@ -482,11 +482,8 @@ static struct pernet_operations ip_vs_ftp_ops = { > > static int __init ip_vs_ftp_init(void) > { > - int rv; > - > - rv = register_pernet_subsys(&ip_vs_ftp_ops); > /* rcu_barrier() is called by netns on error */ > - return rv; > + return register_pernet_subsys(&ip_vs_ftp_ops); > } > > /* MBR, Sergei