Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 110b055 ("drm/amd/display: add getter routine to retrieve mpcc mux") Cc: Josip Pavic <[email protected]> Cc: Bindu Ramamurthy <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information