Skip to content

Commit

Permalink
ipvs: remove unused variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
  • Loading branch information
ArushiSinghal authored and horms committed Mar 30, 2017
1 parent 848850a commit e241137
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/netfilter/ipvs/ip_vs_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit e241137

Please sign in to comment.