mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amdgpu/powerplay: fix warning in smu_v11_0.c
Cast to make min() happy. The values are well within range. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b1ffd1e309
commit
40c9e7b578
@ -1159,7 +1159,7 @@ static int smu_v11_0_set_thermal_range(struct smu_context *smu,
|
||||
|
||||
low = max(SMU_THERMAL_MINIMUM_ALERT_TEMP,
|
||||
range.min / SMU_TEMPERATURE_UNITS_PER_CENTIGRADES);
|
||||
high = min(SMU_THERMAL_MAXIMUM_ALERT_TEMP, powerplay_table->software_shutdown_temp);
|
||||
high = min((uint16_t)SMU_THERMAL_MAXIMUM_ALERT_TEMP, powerplay_table->software_shutdown_temp);
|
||||
|
||||
if (low > high)
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user