[PATCH 2/2] drm/amdgpu/powerplay/smu10: drop unused variable

Alex Deucher alexdeucher at gmail.com
Fri Nov 13 20:40:37 UTC 2020


Never used so drop it.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
index 50308a5573e4..04226b1544e4 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
@@ -1441,8 +1441,6 @@ static int smu10_set_fine_grain_clk_vol(struct pp_hwmgr *hwmgr,
 
 static int smu10_gfx_state_change(struct pp_hwmgr *hwmgr, uint32_t state)
 {
-	struct amdgpu_device *adev = hwmgr->adev;
-
 	smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GpuChangeState, state, NULL);
 
 	return 0;
-- 
2.25.4



More information about the amd-gfx mailing list