Commit 33cd016e authored by mziya's avatar mziya Committed by Alex Deucher

drm/amdgpu: remove unused variable

Remove set but unused variable.
warning: variable 'umc_reg_offset' set but not used
Signed-off-by: default avatarmziya <Mohammadzafar.ziya@amd.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8eb53bb2
...@@ -94,16 +94,12 @@ static void umc_v8_7_ecc_info_query_ras_error_count(struct amdgpu_device *adev, ...@@ -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 umc_inst = 0;
uint32_t ch_inst = 0; uint32_t ch_inst = 0;
uint32_t umc_reg_offset = 0;
uint32_t channel_index = 0; uint32_t channel_index = 0;
/* TODO: driver needs to toggle DF Cstate to ensure /* TODO: driver needs to toggle DF Cstate to ensure
* safe access of UMC registers. Will add the protection * safe access of UMC registers. Will add the protection
*/ */
LOOP_UMC_INST_AND_CH(umc_inst, ch_inst) { 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, channel_index = get_umc_v8_7_channel_index(adev,
umc_inst, umc_inst,
ch_inst); ch_inst);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment