Skip to content

Commit 5302d1a

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Remove ASSERT if significance is zero in math_ceil2
In the DML math_ceil2 function, there is one ASSERT if the significance is equal to zero. However, significance might be equal to zero sometimes, and this is not an issue for a ceil function, but the current ASSERT will trigger warnings in those cases. This commit removes the ASSERT if the significance is equal to zero to avoid unnecessary noise. Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Reviewed-by: Chaitanya Dhere <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 3323158)
1 parent 4ab68e1 commit 5302d1a

File tree

1 file changed

+0
-2
lines changed
  • drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries

1 file changed

+0
-2
lines changed

drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ double math_ceil(const double arg)
6464

6565
double math_ceil2(const double arg, const double significance)
6666
{
67-
ASSERT(significance != 0);
68-
6967
return ((int)(arg / significance + 0.99999)) * significance;
7068
}
7169

0 commit comments

Comments
 (0)