summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2021-11-23 18:18:00 -0800
committerPablo Neira Ayuso <pablo@netfilter.org>2021-11-30 23:11:03 +0100
commit632cb151ca5367f0e1774e71837ab5c55cf0fccf (patch)
tree2abd6b187fdb9606ca24a4145baf1b77a9f34bcf /net
parentc5fc837bf93455376b6377fa6a56166297409ff5 (diff)
netfilter: ctnetlink: remove useless type conversion to bool
dying is bool, the type conversion to true/false value is not needed. Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index 849fa7f4353c..f9f5cb46c43d 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -1746,7 +1746,7 @@ restart:
res = ctnetlink_fill_info(skb, NETLINK_CB(cb->skb).portid,
cb->nlh->nlmsg_seq,
NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
- ct, dying ? true : false, 0);
+ ct, dying, 0);
if (res < 0) {
if (!atomic_inc_not_zero(&ct->ct_general.use))
continue;