]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Ensure curve to hw translation succeed
authorAlex Hung <alex.hung@amd.com>
Tue, 11 Jun 2024 16:43:12 +0000 (10:43 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:38 +0000 (17:10 -0400)
commitc53bb80f49a7cea933ccb4b7a458e6983820e9a5
tree8b8ae6d3973f28c7f0d7235f893b19c0e8ebdd0d
parent9862ef7bae47b9292a38a0a1b30bff7f56d7815b
drm/amd/display: Ensure curve to hw translation succeed

[WHAT & HOW]
Check cm3_helper_translate_curve_to_hw_format runs successfully so the
regamma_params is valid and can be used.

Also revmoed two result assignments.

This fixes 2 CHECKED_RETURN UNUSED_VALUE issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@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/hwss/dcn30/dcn30_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c