netfilter: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 18 Nov 2014 19:37:05 +0000 (20:37 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Nov 2014 12:08:43 +0000 (13:08 +0100)
commit982f405136a44754e884184d24b70d2d4cefcb7a
tree859f3fc225ed106392df89500c2deac8de57326d
parent2c7b5d5dac0ddaa4e1109fb84dbbe91db3c6c6e5
netfilter: Deletion of unnecessary checks before two function calls

The functions free_percpu() and module_put() test whether their argument
is NULL and then return immediately. Thus the test around the call is
not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/ipvs/ip_vs_pe.c
net/netfilter/ipvs/ip_vs_sched.c
net/netfilter/ipvs/ip_vs_sync.c
net/netfilter/nf_tables_api.c