From: Gao Feng <fgao@xxxxxxxxxx> Use not operation instead of condition check to simplify the codes. Signed-off-by: Gao Feng <fgao@xxxxxxxxxx> --- net/netfilter/xt_nfacct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/xt_nfacct.c b/net/netfilter/xt_nfacct.c index cf32759..7abb5b5 100644 --- a/net/netfilter/xt_nfacct.c +++ b/net/netfilter/xt_nfacct.c @@ -28,7 +28,7 @@ static bool nfacct_mt(const struct sk_buff *skb, struct xt_action_param *par) overquota = nfnl_acct_overquota(par->net, skb, info->nfacct); - return overquota == NFACCT_UNDERQUOTA ? false : true; + return !(overquota == NFACCT_UNDERQUOTA); } static int -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html