From 9fe9503eac605c1a404d0b94d9e86a3e3d12b5a7 Mon Sep 17 00:00:00 2001 From: syphyr Date: Fri, 21 Aug 2020 20:15:56 +0200 Subject: [PATCH] netfilter: Remove Samsung debug from xt_quota2 Change-Id: I0f835016b7fd6ca16a3ff12e46a6e02341a6679e --- net/netfilter/xt_quota2.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/net/netfilter/xt_quota2.c b/net/netfilter/xt_quota2.c index 533253660424..9f10e1b24235 100644 --- a/net/netfilter/xt_quota2.c +++ b/net/netfilter/xt_quota2.c @@ -306,15 +306,7 @@ quota_mt2(const struct sk_buff *skb, struct xt_action_param *par) if (e->quota >= skb->len) { if (!(q->flags & XT_QUOTA_NO_CHANGE)) e->quota -= (q->flags & XT_QUOTA_PACKET) ? 1 : skb->len; - - if (!e->quota) { - quota2_log(par->hooknum, - skb, - par->in, - par->out, - q->name); - } else - ret = !ret; + ret = !ret; } else { /* We are transitioning, log that fact. */ if (e->quota) {