diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2017-03-29 16:57:52 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2017-03-30 14:54:47 +0200 |
commit | e24113769960980579610ecfd657bb17f19373a3 (patch) | |
tree | 63ae0ef0693317b3b4745a7977e5e3fc50b38ce6 /net | |
parent | netfilter: ipvs: Replace kzalloc with kcalloc. (diff) | |
download | linux-e24113769960980579610ecfd657bb17f19373a3.tar.xz linux-e24113769960980579610ecfd657bb17f19373a3.zip |
ipvs: remove unused variable
This patch uses the following coccinelle script to remove
a variable that was simply used to store the return
value of a function call before returning it:
@@
identifier len,f;
@@
-int len;
... when != len
when strict
-len =
+return
f(...);
-return len;
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ftp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c index 2e2bf7428cd1..6caf4459e981 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); } /* |