diff options
author | Pavel Machek <pavel@ucw.cz> | 2019-07-24 13:56:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-24 13:56:37 -0700 |
commit | c7148c03db80e44da7197ec5f558f630333c5cad (patch) | |
tree | a2ce2c128e65838c45d6da2b87b8763ad32d2c0a /net | |
parent | d86afb89305de205b0d2f20c2160adf039e9508d (diff) |
net/ipv4: cleanup error condition testing
Cleanup testing for error condition.
Signed-off-by: Pavel Machek <pavel@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/inet_fragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c index d666756be5f1..a999451345f9 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -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; |