mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
drm/amd/pp: Fix incorrect return value in smu7_check_clk_voltage_valid
Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a44f862660
commit
16a6620c32
1 changed files with 1 additions and 1 deletions
|
@ -4770,7 +4770,7 @@ static bool smu7_check_clk_voltage_valid(struct pp_hwmgr *hwmgr,
|
||||||
struct phm_ppt_v1_clock_voltage_dependency_table *dep_sclk_table;
|
struct phm_ppt_v1_clock_voltage_dependency_table *dep_sclk_table;
|
||||||
|
|
||||||
if (table_info == NULL)
|
if (table_info == NULL)
|
||||||
return -EINVAL;
|
return false;
|
||||||
|
|
||||||
dep_sclk_table = table_info->vdd_dep_on_sclk;
|
dep_sclk_table = table_info->vdd_dep_on_sclk;
|
||||||
min_vddc = dep_sclk_table->entries[0].vddc;
|
min_vddc = dep_sclk_table->entries[0].vddc;
|
||||||
|
|
Loading…
Reference in a new issue