diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2018-01-18 17:25:12 -0600 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-19 14:02:18 +0100 |
commit | d384e65f1e752f2b52a8ef300aeb86b1d7a342a9 (patch) | |
tree | 63798288f48091f5bfa55c609fe2ba66265894bd /net/netfilter/nf_conncount.c | |
parent | 3ecbfd65f50e5ff9c538c1bfa3356ef52cc66586 (diff) |
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/nf_conncount.c')
-rw-r--r-- | net/netfilter/nf_conncount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conncount.c b/net/netfilter/nf_conncount.c index a95518261168..6d65389e308f 100644 --- a/net/netfilter/nf_conncount.c +++ b/net/netfilter/nf_conncount.c @@ -71,7 +71,7 @@ static inline bool already_closed(const struct nf_conn *conn) return conn->proto.tcp.state == TCP_CONNTRACK_TIME_WAIT || conn->proto.tcp.state == TCP_CONNTRACK_CLOSE; else - return 0; + return false; } static int key_diff(const u32 *a, const u32 *b, unsigned int klen) |