Fix unused variable warning in mlx5_fs_tree.c

With clang 15, the following -Werror warning is produced:

    sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c:1408:15: error: variable 'candidate_group_num' set but not used [-Werror,-Wunused-but-set-variable]
            unsigned int candidate_group_num = 0;
                         ^

The 'candidate_group_num' variable appears to have been a debugging aid
that has never been used for anything, so remove it.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2022-07-25 00:09:33 +02:00
parent eadef926b0
commit 6332ad8673

View File

@ -1405,7 +1405,6 @@ static struct mlx5_flow_group *create_autogroup(struct mlx5_flow_table *ft,
{
unsigned int group_size;
unsigned int candidate_index = 0;
unsigned int candidate_group_num = 0;
struct mlx5_flow_group *g;
struct mlx5_flow_group *ret;
struct list_head *prev = &ft->fgs;
@ -1442,7 +1441,6 @@ static struct mlx5_flow_group *create_autogroup(struct mlx5_flow_table *ft,
/* sorted by start_index */
fs_for_each_fg(g, ft) {
candidate_group_num++;
if (candidate_index + group_size > g->start_index)
candidate_index = g->start_index + g->max_ftes;
else