mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 02:32:49 -04:00
net/mlx5: fs, Remove redundant assignment of size
size is being reassigned in the line after. remove the redundant assignment. Signed-off-by: Roi Dayan <roid@nvidia.com> Reviewed-by: Maor Dickman <maord@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
08929f32da
commit
beeebdc52c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user