Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	if (!prev)
		fq = inet_frag_create(fqdir, key, &prev);
	if (prev && !IS_ERR(prev)) {
	if (!IS_ERR_OR_NULL(prev)) {
		fq = prev;
		if (!refcount_inc_not_zero(&fq->refcnt))
			fq = NULL;