mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 18:46:25 -04: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user