Re: [PATCH v2] net: netfilter: remove unused variable

From: Simon Horman
Date: Thu Mar 30 2017 - 08:55:26 EST


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@xxxxxxxxx>

Applied with patch prefix updated to "ipvs:".