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

net/mlx5: fs, Remove redundant assignment of size



size is being reassigned in the line after.
remove the redundant assignment.

Signed-off-by: default avatarRoi Dayan <roid@nvidia.com>
Reviewed-by: default avatarMaor Dickman <maord@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 08929f32
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -272,8 +272,6 @@ static int mlx5_cmd_create_flow_table(struct mlx5_flow_root_namespace *ns,
	unsigned int size;
	int err;

	if (ft_attr->max_fte != POOL_NEXT_SIZE)
		size = roundup_pow_of_two(ft_attr->max_fte);
	size = mlx5_ft_pool_get_avail_sz(dev, ft->type, ft_attr->max_fte);
	if (!size)
		return -ENOSPC;