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>
This commit is contained in:
Bernard Zhao 2021-11-23 18:18:00 -08:00 committed by Pablo Neira Ayuso
parent c5fc837bf9
commit 632cb151ca
1 changed files with 1 additions and 1 deletions

View File

@ -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;