aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoi Dayan <[email protected]>2023-01-17 14:02:00 +0200
committerSaeed Mahameed <[email protected]>2023-02-07 16:29:55 -0800
commitbeeebdc52caff03e079d89567c9485c7d8f9afad (patch)
treef3944666b2b8b5660f0e6c002bd87bc4e00a178c
parent08929f32da0f9027436ee5b9190163202dd293ec (diff)
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]>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
index e6874298ba92..374c17445e54 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
@@ -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;