All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] net: netfilter: remove unused variable
@ 2017-03-29 14:57 Arushi Singhal
  2017-03-30 12:55 ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Arushi Singhal @ 2017-03-29 14:57 UTC (permalink / raw)
  To: outreachy-kernel
  Cc: Wensong Zhang, Simon Horman, Julian Anastasov, Pablo Neira Ayuso,
	Jozsef Kadlecsik, David S. Miller, netdev, lvs-devel,
	netfilter-devel, coreteam, linux-kernel

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>
---
changes in v2
   - remove extra blank line.

 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 d30c327bb578..c93c93762354 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.11.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] net: netfilter: remove unused variable
  2017-03-29 14:57 [PATCH v2] net: netfilter: remove unused variable Arushi Singhal
@ 2017-03-30 12:55 ` Simon Horman
  2017-03-30 14:08   ` Arushi Singhal
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2017-03-30 12:55 UTC (permalink / raw)
  To: Arushi Singhal
  Cc: outreachy-kernel, Wensong Zhang, Julian Anastasov,
	Pablo Neira Ayuso, Jozsef Kadlecsik, David S. Miller, netdev,
	lvs-devel, netfilter-devel, coreteam, linux-kernel

On Wed, Mar 29, 2017 at 08:27:52PM +0530, Arushi Singhal wrote:
> 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>

Applied with patch prefix updated to "ipvs:".


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] net: netfilter: remove unused variable
  2017-03-30 12:55 ` Simon Horman
@ 2017-03-30 14:08   ` Arushi Singhal
  2017-03-30 14:36     ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Arushi Singhal @ 2017-03-30 14:08 UTC (permalink / raw)
  To: Simon Horman
  Cc: outreachy-kernel, Wensong Zhang, Julian Anastasov,
	Pablo Neira Ayuso, Jozsef Kadlecsik, David S. Miller, netdev,
	lvs-devel, netfilter-devel, coreteam, LKML

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

On Thu, Mar 30, 2017 at 6:25 PM, Simon Horman <horms@verge.net.au> wrote:

> On Wed, Mar 29, 2017 at 08:27:52PM +0530, Arushi Singhal wrote:
> > 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>
>
> Applied with patch prefix updated to "ipvs:".
>
Hi
Thanks
How can I see my accepted patches of netfilter.
Thanks
Arushi

[-- Attachment #2: Type: text/html, Size: 1314 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] net: netfilter: remove unused variable
  2017-03-30 14:08   ` Arushi Singhal
@ 2017-03-30 14:36     ` Pablo Neira Ayuso
  0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2017-03-30 14:36 UTC (permalink / raw)
  To: Arushi Singhal
  Cc: Simon Horman, outreachy-kernel, Wensong Zhang, Julian Anastasov,
	Jozsef Kadlecsik, David S. Miller, netdev, lvs-devel,
	netfilter-devel, coreteam, LKML

On Thu, Mar 30, 2017 at 07:38:08PM +0530, Arushi Singhal wrote:
> On Thu, Mar 30, 2017 at 6:25 PM, Simon Horman <horms@verge.net.au> wrote:
> 
> > On Wed, Mar 29, 2017 at 08:27:52PM +0530, Arushi Singhal wrote:
> > > 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>
> >
> > Applied with patch prefix updated to "ipvs:".
> >
> Hi
> Thanks
> How can I see my accepted patches of netfilter.

You can use links from patchwork:

http://patchwork.ozlabs.org/project/netfilter-devel/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-31  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 14:57 [PATCH v2] net: netfilter: remove unused variable Arushi Singhal
2017-03-30 12:55 ` Simon Horman
2017-03-30 14:08   ` Arushi Singhal
2017-03-30 14:36     ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.