]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Remove ASSERT if significance is zero in math_ceil2
authorRodrigo Siqueira <rodrigo.siqueira@amd.com>
Thu, 4 Jul 2024 17:54:34 +0000 (11:54 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:35:51 +0000 (17:35 -0400)
commit332315885d3ccc6d8fe99700f3c2e4c24aa65ab7
treed3526c9b0e5f1859348b0cae91b1b26a0486cd42
parent6fa4bf3dce0668a96faca0024e382f4489a9cc9b
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 <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.c