OSDN Git Service

drm/amdgpu: remove unused variable num_xcc
authorTom Rix <trix@redhat.com>
Mon, 22 May 2023 12:30:13 +0000 (08:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:52:45 +0000 (10:52 -0400)
commit803e4c9efc79c96796efbecab9ed53267d051256
tree00207e763bc715ee337bfd7f38905d0db6c1cbdc
parent1501fe94eedd18243b84008aecc25f4f3c4fa48d
drm/amdgpu: remove unused variable num_xcc

gcc with W=1 reports
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:2138:13: error: variable
  ‘num_xcc’ set but not used [-Werror=unused-but-set-variable]
 2138 |         int num_xcc;
      |             ^~~~~~~

This variable is not used so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c