projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d86afb8
)
net/ipv4: cleanup error condition testing
author
Pavel Machek
<pavel@ucw.cz>
Wed, 24 Jul 2019 20:56:37 +0000
(13:56 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 24 Jul 2019 20:56:37 +0000
(13:56 -0700)
Cleanup testing for error condition.
Signed-off-by: Pavel Machek <pavel@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_fragment.c
patch
|
blob
|
history
diff --git
a/net/ipv4/inet_fragment.c
b/net/ipv4/inet_fragment.c
index d666756be5f18404ce8e85a95e9f09636d5f2694..a999451345f9805a195915dc2c55a9db31a51002 100644
(file)
--- 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;