diff options
| author | Alex Hung <[email protected]> | 2024-06-05 16:51:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-06-19 16:44:55 +0000 |
| commit | b62ec97d55e34942936653dafa1542ae9cfe14e3 (patch) | |
| tree | c2ef4c5954a7a06a9b7460b5ef73646204be6ad8 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amd/display: Check pipe_ctx before it is used (diff) | |
| download | kernel-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
