Skip to content

Commit fe24a0c

Browse files
gfreewindhorms
authored andcommitted
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 <[email protected]> Acked-by: Julian Anastasov <[email protected]> Signed-off-by: Simon Horman <[email protected]>
1 parent 7d38484 commit fe24a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/ipvs/ip_vs_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ static int ip_vs_genl_dump_dests(struct sk_buff *skb,
32603260

32613261

32623262
svc = ip_vs_genl_find_service(ipvs, attrs[IPVS_CMD_ATTR_SERVICE]);
3263-
if (IS_ERR(svc) || svc == NULL)
3263+
if (IS_ERR_OR_NULL(svc))
32643264
goto out_err;
32653265

32663266
/* Dump the destinations */

0 commit comments

Comments
 (0)