aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_ipcomp.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2018-01-18 17:25:12 -0600
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-19 14:02:18 +0100
commitd384e65f1e752f2b52a8ef300aeb86b1d7a342a9 (patch)
tree63798288f48091f5bfa55c609fe2ba66265894bd /net/netfilter/xt_ipcomp.c
parent3ecbfd65f50e5ff9c538c1bfa3356ef52cc66586 (diff)
downloadlinux-d384e65f1e752f2b52a8ef300aeb86b1d7a342a9.tar.gz
netfilter: return booleans instead of integers
Return statements in functions returning bool should use true/false instead of 1/0. These issues were detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_ipcomp.c')
-rw-r--r--net/netfilter/xt_ipcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_ipcomp.c b/net/netfilter/xt_ipcomp.c
index 000e70377f85dd..7ca64a50db04d0 100644
--- a/net/netfilter/xt_ipcomp.c
+++ b/net/netfilter/xt_ipcomp.c
@@ -58,7 +58,7 @@ static bool comp_mt(const struct sk_buff *skb, struct xt_action_param *par)
*/
pr_debug("Dropping evil IPComp tinygram.\n");
par->hotdrop = true;
- return 0;
+ return false;
}
return spi_match(compinfo->spis[0], compinfo->spis[1],