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) {