drm/amd/display: unset initial value for tf since it's never used
authorMelissa Wen <mwen@igalia.com>
Tue, 14 Feb 2023 12:14:04 +0000 (11:14 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Feb 2023 03:24:20 +0000 (22:24 -0500)
commitaf54167d2b35be289a6aa98c0ebbb9bc38a1bdce
tree4b59dd598b3744996cb57af677349d8ad20e42db
parent6ff387e889c48e0380e41ac6a5b06c71380110cd
drm/amd/display: unset initial value for tf since it's never used

In mod_color_calculate_{degamma/regamma}_params(), a tf variable is
initialized as TRANSFER_FUNCTION_SRGB but tf is only used after tf =
input->tf, therefore, better to just remove this initial value and avoid
misleading interpretations.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c