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

Commit fe24a0c3 authored by Gao Feng's avatar Gao Feng Committed by Simon Horman
Browse files

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: default avatarGao Feng <fgao@ikuai8.com>
Acked-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 7d384846
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */