[PATCH v2 2/2] netfilter: ipvs: Compress return logic

From: simran singhal
Date: Tue Mar 21 2017 - 09:32:03 EST


Simplify function returns by merging assignment and return into
one command line.

Signed-off-by: simran singhal <singhalsimran0@xxxxxxxxx>
---

--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);
}

/*
--
2.7.4