]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipvs: remove unused variable
authorArushi Singhal <arushisinghal19971997@gmail.com>
Wed, 29 Mar 2017 14:57:52 +0000 (20:27 +0530)
committerSimon Horman <horms@verge.net.au>
Thu, 30 Mar 2017 12:54:47 +0000 (14:54 +0200)
commite24113769960980579610ecfd657bb17f19373a3
tree63ae0ef0693317b3b4745a7977e5e3fc50b38ce6
parent848850a3e9161e2cdcbb5cef7edc21ba49252ad1
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>
net/netfilter/ipvs/ip_vs_ftp.c