mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02: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:
committed by
Pablo Neira Ayuso
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
|
||||
|
Reference in New Issue
Block a user