net/mlx5: fs, Remove redundant assignment of size
authorRoi Dayan <roid@nvidia.com>
Tue, 17 Jan 2023 12:02:00 +0000 (14:02 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 00:29:55 +0000 (16:29 -0800)
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>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c

index e6874298ba92d86c09ee7f5276d1691635605218..374c17445e542280a3b4b775feafff59e0d8149d 100644 (file)
@@ -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;