summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-06-05 19:51:37 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-06-19 19:44:55 +0300
commitb62ec97d55e34942936653dafa1542ae9cfe14e3 (patch)
treec2ef4c5954a7a06a9b7460b5ef73646204be6ad8 /scripts/lib/kdoc/kdoc_files.py
parent7cf24de30e8ab875abc92a81ff227ab9e5f4282e (diff)
downloadlinux-b62ec97d55e34942936653dafa1542ae9cfe14e3.tar.xz
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 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions