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

Luben Tuikov luben.tuikov at amd.com
Fri Nov 13 23:15:34 UTC 2020


For the series:

Reviewed-by: Luben Tuikov <luben.tuikov at amd.com>

On 2020-11-13 3:40 p.m., Alex Deucher wrote:
> 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;
> 



More information about the amd-gfx mailing list