diff options
author | Gao Feng | 2016-07-22 01:55:41 +0200 |
---|---|---|
committer | Simon Horman | 2016-11-15 09:49:19 +0100 |
commit | fe24a0c3a974f15945639edfc19f6b85f672145c (patch) | |
tree | 0b9dff4f315d2df013b37137553c17d8d8f9a3af /net/netfilter/ipvs/ip_vs_ctl.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next (diff) | |
download | kernel-qcow2-linux-fe24a0c3a974f15945639edfc19f6b85f672145c.tar.gz kernel-qcow2-linux-fe24a0c3a974f15945639edfc19f6b85f672145c.tar.xz kernel-qcow2-linux-fe24a0c3a974f15945639edfc19f6b85f672145c.zip |
ipvs: Use IS_ERR_OR_NULL(svc) instead of IS_ERR(svc) || svc == NULL
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>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_ctl.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 6b85ded4f91d..217e0105b5e0 100644 --- 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 */ |