OSDN Git Service

drm/amd/pm: remove unused num_of_active_display variable
authorTom Rix <trix@redhat.com>
Fri, 31 Mar 2023 16:40:41 +0000 (12:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Apr 2023 04:13:40 +0000 (00:13 -0400)
commite69c373c3f0c1888b4b758e37d05e2e7b76585f2
treef0bc3c4313b989c1e4490e48b211c0b365cef5a0
parent6246059a19d4cd32ef1af42a6ab016b779cd68c4
drm/amd/pm: remove unused num_of_active_display variable

clang with W=1 reports
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c:1700:6: error: variable
  'num_of_active_display' set but not used [-Werror,-Wunused-but-set-variable]
        int num_of_active_display = 0;
            ^
This variable is not used so remove it.

Fixes: 75145aab7a0d ("drm/amdgpu/swsmu: clean up a bunch of stale interfaces")
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c