drm/amdgpu: remove unnecessary variables
authorIsabella Basso <isabbasso@riseup.net>
Thu, 9 Dec 2021 15:47:21 +0000 (12:47 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:33:17 +0000 (16:33 -0500)
commit9be9bf4e3a5efc2991375e22ec9956dc654652ff
tree9d0cf57e02dbc1775a07fdf0ce9b0cbc28795c5d
parent929bb8e200412da36aca4b61209ec26283f9c184
drm/amdgpu: remove unnecessary variables

This fixes the warnings below, and also drops the display_count
variable, as it's unused.

 In function 'svm_range_map_to_gpu':
 warning: variable 'bo_va' set but not used [-Wunused-but-set-variable]
 1172 |         struct amdgpu_bo_va bo_va;
      |                             ^~~~~
 ...
 In function 'dcn201_update_clocks':
 warning: variable 'enter_display_off' set but not used [-Wunused-but-set-variable]
 132 |         bool enter_display_off = false;
     |              ^~~~~~~~~~~~~~~~~

Changes since v1:
- As suggested by Rodrigo Siqueira:
  1. Drop display_count variable.
- As suggested by Felix Kuehling:
  1. Remove block surrounding amdgpu_xgmi_same_hive.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Isabella Basso <isabbasso@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c