Skip to content

Commit beeebdc

Browse files
roidayanSaeed Mahameed
authored andcommitted
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 <[email protected]> Reviewed-by: Maor Dickman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 08929f3 commit beeebdc

File tree

1 file changed

+0
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+0
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,6 @@ static int mlx5_cmd_create_flow_table(struct mlx5_flow_root_namespace *ns,
272272
unsigned int size;
273273
int err;
274274

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

0 commit comments

Comments
 (0)