summaryrefslogtreecommitdiffstats
path: root/net/ipv6/netfilter/nf_conntrack_reasm.c
diff options
context:
space:
mode:
authorEric Dumazet2018-03-31 21:58:52 +0200
committerDavid S. Miller2018-04-01 05:25:39 +0200
commit2d44ed22e607f9a285b049de2263e3840673a260 (patch)
treef091493e1e872420c867d309afd9d03dc547f505 /net/ipv6/netfilter/nf_conntrack_reasm.c
parentinet: frags: get rif of inet_frag_evicting() (diff)
downloadkernel-qcow2-linux-2d44ed22e607f9a285b049de2263e3840673a260.tar.gz
kernel-qcow2-linux-2d44ed22e607f9a285b049de2263e3840673a260.tar.xz
kernel-qcow2-linux-2d44ed22e607f9a285b049de2263e3840673a260.zip
inet: frags: remove inet_frag_maybe_warn_overflow()
This function is obsolete, after rhashtable addition to inet defrag. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/nf_conntrack_reasm.c')
-rw-r--r--net/ipv6/netfilter/nf_conntrack_reasm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
index 0ad3df551d98..d866412b8f6c 100644
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
@@ -178,10 +178,9 @@ static struct frag_queue *fq_find(struct net *net, __be32 id, u32 user,
struct inet_frag_queue *q;
q = inet_frag_find(&net->nf_frag.frags, &key);
- if (IS_ERR_OR_NULL(q)) {
- inet_frag_maybe_warn_overflow(q, pr_fmt());
+ if (!q)
return NULL;
- }
+
return container_of(q, struct frag_queue, q);
}