Skip to contentSkip to conversation

drm/amdgpu: remove unused variable

PATCH In review mziya 2 participants 2 messages Jan 19, 2022

Subsystems (2)
lore
Share & tools
lore

mziya

author
#0 lore raw

PATCH 1/1 drm/amdgpu: remove unused variable

Remove set but unused variable.
warning: variable 'umc_reg_offset' set but not used

---
 drivers/gpu/drm/amd/amdgpu/umc_v8_7.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/umc_v8_7.c +0 -4
index 291b37f6db4e..05f79eea307c 100644
@@ -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);
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only]

Regards,
Hawking
-----Original Message-----
From: Ziya, Mohammad zafar <[email protected]>
Sent: Wednesday, January 19, 2022 14:23
To: Zhang, Hawking <[email protected]>; Lazar, Lijo <[email protected]>; Clements, John <[email protected]>
Cc: [email protected]; Ziya, Mohammad zafar <[email protected]>; kernel test robot <[email protected]>
Subject: [PATCH] drm/amdgpu: remove unused variable

Remove set but unused variable.
warning: variable 'umc_reg_offset' set but not used

---
 drivers/gpu/drm/amd/amdgpu/umc_v8_7.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/umc_v8_7.c +0 -4
index 291b37f6db4e..05f79eea307c 100644
@@ -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);
Signature · 1 line
2.25.1