Skip to contentSkip to conversation

drm/amdgpu: remove unused variable

PATCH In review bobzhou 2 participants 2 messages Mar 2, 2023

Subsystems (2)
lore
Share & tools
lore

bobzhou

author
#0 lore raw

PATCH 1/1 drm/amdgpu: remove unused variable

building with gcc and W=1 reports drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:7292:11: error:
unused variable 'tmp' [-Werror=unused-variable]

  uint32_t tmp;
           ^~~

tmp is not used so remove it.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -1
index 073f5f23bc3b..516409989235 100644
@@ -7266,7 +7266,6 @@ static int gfx_v10_0_hw_fini(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 	int r;
-	uint32_t tmp;
 
 	amdgpu_irq_put(adev, &adev->gfx.priv_reg_irq, 0);
 	amdgpu_irq_put(adev, &adev->gfx.priv_inst_irq, 0);
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

Regards,
Guchun

-----Original Message-----
From: bobzhou <[email protected]>
Sent: Thursday, March 2, 2023 2:44 PM
To: [email protected]; Chen, Guchun <[email protected]>; Cui, Flora <[email protected]>; Shi, Leslie <[email protected]>; Ma, Jun <[email protected]>
Cc: Zhou, Bob <[email protected]>
Subject: [PATCH] drm/amdgpu: remove unused variable

building with gcc and W=1 reports drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:7292:11: error:
unused variable 'tmp' [-Werror=unused-variable]

  uint32_t tmp;
           ^~~

tmp is not used so remove it.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -2
index 073f5f23bc3b..516409989235 100644
@@ -7266,7 +7266,6 @@ static int gfx_v10_0_hw_fini(void *handle)  {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 	int r;
-	uint32_t tmp;
 
 	amdgpu_irq_put(adev, &adev->gfx.priv_reg_irq, 0);
 	amdgpu_irq_put(adev, &adev->gfx.priv_inst_irq, 0);
--

2.34.1