summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorRoi Dayan <roid@nvidia.com>2023-01-17 15:02:00 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-02-08 03:29:55 +0300
commitbeeebdc52caff03e079d89567c9485c7d8f9afad (patch)
treef3944666b2b8b5660f0e6c002bd87bc4e00a178c /drivers/net/ethernet
parent08929f32da0f9027436ee5b9190163202dd293ec (diff)
downloadlinux-beeebdc52caff03e079d89567c9485c7d8f9afad.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet')
-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;