aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-06-05 10:51:37 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-06-19 12:44:55 -0400
commitb62ec97d55e34942936653dafa1542ae9cfe14e3 (patch)
treec2ef4c5954a7a06a9b7460b5ef73646204be6ad8 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parent7cf24de30e8ab875abc92a81ff227ab9e5f4282e (diff)
downloadlinux-b62ec97d55e34942936653dafa1542ae9cfe14e3.tar.gz
linux-b62ec97d55e34942936653dafa1542ae9cfe14e3.tar.bz2
linux-b62ec97d55e34942936653dafa1542ae9cfe14e3.zip
drm/amd/display: Covert integers to double before divisions
Integer divisions result in loss of fractional and accuracy is lost when assigned or compared with double. It is necessary to perform double/integer instead or explicitly cast them to double. This fixes 54 UNINTENDED_INTEGER_DIVISION issues reported by Coverity. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions