]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: always-true lower-bound assert
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Thu, 30 Apr 2026 00:05:29 +0000 (20:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 20:10:48 +0000 (16:10 -0400)
commita349b97b88e26a88171b8672cee744cac2cff5ae
tree80bceee8cf9082fc1f937d8c7795d768effa3a15
parent293dd2182e64331727f989a323fb40227f07bcbf
drm/amd/display: always-true lower-bound assert

[Why]
A recent type change made the lower-bound part of the OTG instance
assert redundant, which can trigger static-analysis noise and distract
from actionable diagnostics.

[How]
Kept the meaningful upper-bound range validation required for safe
narrowing to uint8_t. Removed the redundant non-negative portion of the
assert so the check matches current type semantics. Revalidated with the
latest debug build log: no warnings and no build-failure markers.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: James Lin <pinglei.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c