net: Replace NF_CT_ASSERT() with WARN_ON().

This patch removes NF_CT_ASSERT() and instead uses WARN_ON().

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
This commit is contained in:
Varsha Rao
2017-08-30 13:37:11 +05:30
committed by Pablo Neira Ayuso
parent d1c1e39de8
commit 44d6e2f273
15 changed files with 45 additions and 46 deletions

View File

@@ -159,7 +159,7 @@ nf_ct_get(const struct sk_buff *skb, enum ip_conntrack_info *ctinfo)
/* decrement reference count on a conntrack */
static inline void nf_ct_put(struct nf_conn *ct)
{
NF_CT_ASSERT(ct);
WARN_ON(!ct);
nf_conntrack_put(&ct->ct_general);
}