Commit c7148c03 authored by Pavel Machek's avatar Pavel Machek Committed by David S. Miller

net/ipv4: cleanup error condition testing

Cleanup testing for error condition.
Signed-off-by: default avatarPavel Machek <pavel@denx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d86afb89
...@@ -331,7 +331,7 @@ struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key) ...@@ -331,7 +331,7 @@ struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key)
prev = rhashtable_lookup(&fqdir->rhashtable, key, fqdir->f->rhash_params); prev = rhashtable_lookup(&fqdir->rhashtable, key, fqdir->f->rhash_params);
if (!prev) if (!prev)
fq = inet_frag_create(fqdir, key, &prev); fq = inet_frag_create(fqdir, key, &prev);
if (prev && !IS_ERR(prev)) { if (!IS_ERR_OR_NULL(prev)) {
fq = prev; fq = prev;
if (!refcount_inc_not_zero(&fq->refcnt)) if (!refcount_inc_not_zero(&fq->refcnt))
fq = NULL; fq = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment