]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipvs: Delete an unnecessary check before the function call "module_put"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 10 Jul 2015 06:42:49 +0000 (15:42 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Jul 2015 15:51:22 +0000 (17:51 +0200)
commit0d6ef0688d8744454646298b85336407be05e309
tree996d279032f269a843c2239795ac1558b3989fc8
parentaad0d51e933f8656880592020319d2dbd09532a2
ipvs: Delete an unnecessary check before the function call "module_put"

The module_put() function tests whether its argument is NULL and then
returns 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>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_sched.c