aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorAlex Hung <[email protected]>2024-06-05 16:51:37 +0000
committerAlex Deucher <[email protected]>2024-06-19 16:44:55 +0000
commitb62ec97d55e34942936653dafa1542ae9cfe14e3 (patch)
treec2ef4c5954a7a06a9b7460b5ef73646204be6ad8 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amd/display: Check pipe_ctx before it is used (diff)
downloadkernel-b62ec97d55e34942936653dafa1542ae9cfe14e3.tar.gz
kernel-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 <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Hung <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions