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

Commit d34c6efc authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed
Browse files

net/mlx5: Use ERR_CAST() instead of coding it



This makes it more readable that rule is being used to return an err.

Signed-off-by: default avatarRoi Dayan <roid@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 0f403910
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1825,7 +1825,7 @@ _mlx5_add_flow_rules(struct mlx5_flow_table *ft,

	g = alloc_auto_flow_group(ft, spec);
	if (IS_ERR(g)) {
		rule = (void *)g;
		rule = ERR_CAST(g);
		up_write_ref_node(&ft->node);
		return rule;
	}