]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix unused variable warning in mlx5_fs_tree.c
authorDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 22:09:33 +0000 (00:09 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 27 Jul 2022 19:16:22 +0000 (21:16 +0200)
commitafbb64817633d8f7d1d45152e46bd708e0183d15
tree36f8cf57fda23d883ad908f7559e4edd862844fa
parentfb3239539b7b55f5b2fa4250cafe075524c36941
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

(cherry picked from commit 6332ad8673fb108dcb8af0aaa42d75ea845748d7)
sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c