diff options
author | Isabella Basso <isabbasso@riseup.net> | 2021-12-09 12:47:21 -0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-12-13 16:33:17 -0500 |
commit | 9be9bf4e3a5efc2991375e22ec9956dc654652ff (patch) | |
tree | 9d0cf57e02dbc1775a07fdf0ce9b0cbc28795c5d /drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c | |
parent | 929bb8e200412da36aca4b61209ec26283f9c184 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c')
0 files changed, 0 insertions, 0 deletions