OSDN Git Service

drm/amd/display: Initialize stack variable
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Mon, 14 Dec 2020 20:35:02 +0000 (15:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 05:18:33 +0000 (00:18 -0500)
commit4336be4b07ed3b03a18ac35564c3127eeea05ab6
tree22ad7b19a122e2dcae6ba98105eddf3b09247851
parent73644143b31cb95866c19e0d94be9e3127ec3a6b
drm/amd/display: Initialize stack variable

[WHY]
The stack variable "val" is potentially unpopulate it, so initialize it
with the value 0xf (indicating an invalid mux)

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c