drm/amd/pm: minor cleanups
Drop unneeded "ret". Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Nirmoy Das <nirmoy.das@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
38d11e0249
commit
6c20f1573c
|
@ -1164,12 +1164,10 @@ int smu_v11_0_get_fan_speed_rpm(struct smu_context *smu,
|
||||||
int smu_v11_0_set_xgmi_pstate(struct smu_context *smu,
|
int smu_v11_0_set_xgmi_pstate(struct smu_context *smu,
|
||||||
uint32_t pstate)
|
uint32_t pstate)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
return smu_cmn_send_smc_msg_with_param(smu,
|
||||||
ret = smu_cmn_send_smc_msg_with_param(smu,
|
SMU_MSG_SetXgmiMode,
|
||||||
SMU_MSG_SetXgmiMode,
|
pstate ? XGMI_MODE_PSTATE_D0 : XGMI_MODE_PSTATE_D3,
|
||||||
pstate ? XGMI_MODE_PSTATE_D0 : XGMI_MODE_PSTATE_D3,
|
|
||||||
NULL);
|
NULL);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int smu_v11_0_set_irq_state(struct amdgpu_device *adev,
|
static int smu_v11_0_set_irq_state(struct amdgpu_device *adev,
|
||||||
|
@ -1400,11 +1398,7 @@ int smu_v11_0_get_max_sustainable_clocks_by_dc(struct smu_context *smu,
|
||||||
|
|
||||||
int smu_v11_0_set_azalia_d3_pme(struct smu_context *smu)
|
int smu_v11_0_set_azalia_d3_pme(struct smu_context *smu)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
return smu_cmn_send_smc_msg(smu, SMU_MSG_BacoAudioD3PME, NULL);
|
||||||
|
|
||||||
ret = smu_cmn_send_smc_msg(smu, SMU_MSG_BacoAudioD3PME, NULL);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int smu_v11_0_baco_set_armd3_sequence(struct smu_context *smu, enum smu_v11_0_baco_seq baco_seq)
|
static int smu_v11_0_baco_set_armd3_sequence(struct smu_context *smu, enum smu_v11_0_baco_seq baco_seq)
|
||||||
|
@ -1503,13 +1497,7 @@ int smu_v11_0_baco_enter(struct smu_context *smu)
|
||||||
|
|
||||||
int smu_v11_0_baco_exit(struct smu_context *smu)
|
int smu_v11_0_baco_exit(struct smu_context *smu)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
return smu_v11_0_baco_set_state(smu, SMU_BACO_STATE_EXIT);
|
||||||
|
|
||||||
ret = smu_v11_0_baco_set_state(smu, SMU_BACO_STATE_EXIT);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int smu_v11_0_mode1_reset(struct smu_context *smu)
|
int smu_v11_0_mode1_reset(struct smu_context *smu)
|
||||||
|
|
Loading…
Reference in New Issue