projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d38484
)
ipvs: Use IS_ERR_OR_NULL(svc) instead of IS_ERR(svc) || svc == NULL
author
Gao Feng
<fgao@ikuai8.com>
Thu, 21 Jul 2016 23:55:41 +0000
(07:55 +0800)
committer
Simon Horman
<horms@verge.net.au>
Tue, 15 Nov 2016 08:49:19 +0000
(09:49 +0100)
This minor refactoring does not change the logic of function
ip_vs_genl_dump_dests.
Signed-off-by: Gao Feng <fgao@ikuai8.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/ipvs/ip_vs_ctl.c
b/net/netfilter/ipvs/ip_vs_ctl.c
index 6b85ded4f91d44abf0917cb74f259015fd8394c1..217e0105b5e0312af5664ee78e71e4128d86e8ef 100644
(file)
--- a/
net/netfilter/ipvs/ip_vs_ctl.c
+++ b/
net/netfilter/ipvs/ip_vs_ctl.c
@@
-3260,7
+3260,7
@@
static int ip_vs_genl_dump_dests(struct sk_buff *skb,
svc = ip_vs_genl_find_service(ipvs, attrs[IPVS_CMD_ATTR_SERVICE]);
- if (IS_ERR
(svc) || svc == NULL
)
+ if (IS_ERR
_OR_NULL(svc)
)
goto out_err;
/* Dump the destinations */