drm/amd/display: reduce scope for local var
authorAric Cyr <aric.cyr@amd.com>
Fri, 12 Feb 2021 23:30:08 +0000 (18:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Feb 2021 23:07:00 +0000 (18:07 -0500)
commit9422f2fafef620363736d67d9d4add434684b04e
tree93d0892abfc533bf317c01fe810a338fcf10e75a
parent6ad98e8aeb0106f453bb154933e8355849244990
drm/amd/display: reduce scope for local var

[Why]
No reason to have uninitialized var at top of function

[How]
Move it to minimum scope where it's actuallty used

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@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/core/dc.c