]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Don't check for NULL divisor in fixpt code
authorHarry Wentland <harry.wentland@amd.com>
Mon, 28 Apr 2025 20:26:20 +0000 (16:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 21:40:15 +0000 (17:40 -0400)
commitd01ca8708d95a561f6462a15cad94a2c0bec7042
tree9d7b047cf69d47dec4301bf3c3092a76a2324a4f
parente2255687c81398a32210306024f08b1615b87885
drm/amd/display: Don't check for NULL divisor in fixpt code

[Why]
We check for a NULL divisor but don't act on it.
This check does nothing other than throw a warning.
It does confuse static checkers though:
See https://lkml.org/lkml/2025/4/26/371

[How]
Drop the ASSERTs in both DC and SPL variants.

Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display driver (v2)")
Fixes: 6efc0ab3b05d ("drm/amd/display: add back quality EASF and ISHARP and dc dependency changes")
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c
drivers/gpu/drm/amd/display/dc/sspl/spl_fixpt31_32.c