mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00: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:
parent
08929f32da
commit
beeebdc52c
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue