linux/drivers/gpu/drm/amd/display
Linus Torvalds 61d791365b drm/amd/display: avoid uninitialized variable warning
clang (quite rightly) complains fairly loudly about the newly added
mpc1_get_mpc_out_mux() function returning an uninitialized value if the
'opp_id' checks don't pass.

This may not happen in practice, but the code really shouldn't return
garbage if the sanity checks don't pass.

So just initialize 'val' to zero to avoid the issue.

Fixes: 110b055b28 ("drm/amd/display: add getter routine to retrieve mpcc mux")
Cc: Josip Pavic <Josip.Pavic@amd.com>
Cc: Bindu Ramamurthy <bindu.r@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-25 15:41:13 -08:00
..
amdgpu_dm Merge tag 'amd-drm-fixes-5.11-2020-12-23' of git://people.freedesktop.org/~agd5f/linux into drm-next 2020-12-24 10:31:16 +10:00
dc drm/amd/display: avoid uninitialized variable warning 2020-12-25 15:41:13 -08:00
dmub drm/amd/display: [FW Promotion] Release 0.0.47 2020-12-23 15:02:37 -05:00
include drm/amd/display: Add internal display info 2020-11-24 12:08:15 -05:00
modules drm/amd/display: gradually ramp ABM intensity 2020-12-23 15:01:47 -05:00
Kconfig drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
Makefile
TODO