mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
netfilter: Remove unnecessary conversion to bool
Here we could use the '!=' expression to fix the following coccicheck warning: ./net/netfilter/xt_nfacct.c:30:41-46: WARNING: conversion to bool not needed here Reported-by: Tosk Robot <tencent_os_robot@tencent.com> Signed-off-by: Kaixu Xia <kaixuxia@tencent.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
988187e881
commit
0ef083d51b
@ -27,7 +27,7 @@ static bool nfacct_mt(const struct sk_buff *skb, struct xt_action_param *par)
|
||||
|
||||
overquota = nfnl_acct_overquota(xt_net(par), info->nfacct);
|
||||
|
||||
return overquota == NFACCT_UNDERQUOTA ? false : true;
|
||||
return overquota != NFACCT_UNDERQUOTA;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user