aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormziya <[email protected]>2022-01-19 05:01:11 +0000
committerAlex Deucher <[email protected]>2022-01-20 03:32:28 +0000
commit33cd016e600ac3417aff7c85f59b9a4b70a947e9 (patch)
tree99f0886626843b458911791e0aff36381e9434f8
parentdrm/amdgpu: Remove repeated calls (diff)
downloadkernel-33cd016e600ac3417aff7c85f59b9a4b70a947e9.tar.gz
kernel-33cd016e600ac3417aff7c85f59b9a4b70a947e9.zip
drm/amdgpu: remove unused variable
Remove set but unused variable. warning: variable 'umc_reg_offset' set but not used Signed-off-by: mziya <[email protected]> Reported-by: kernel test robot <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/umc_v8_7.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c b/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c
index 291b37f6db4e..05f79eea307c 100644
--- a/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c
+++ b/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c
@@ -94,16 +94,12 @@ static void umc_v8_7_ecc_info_query_ras_error_count(struct amdgpu_device *adev,
uint32_t umc_inst = 0;
uint32_t ch_inst = 0;
- uint32_t umc_reg_offset = 0;
uint32_t channel_index = 0;
/* TODO: driver needs to toggle DF Cstate to ensure
* safe access of UMC registers. Will add the protection
*/
LOOP_UMC_INST_AND_CH(umc_inst, ch_inst) {
- umc_reg_offset = get_umc_v8_7_reg_offset(adev,
- umc_inst,
- ch_inst);
channel_index = get_umc_v8_7_channel_index(adev,
umc_inst,
ch_inst);