diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 04fe25abc5f66e2e892cb8d606846e46d5a0b7f1..52cd2901a097b3b468f1107d9d870260aaff11e3 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -215,7 +215,7 @@ static void *__nf_hook_entries_try_shrink(struct nf_hook_entries __rcu **pp) if (skip == hook_entries) goto out_assign; - if (WARN_ON(skip == 0)) + if (skip == 0) return NULL; hook_entries -= skip;