diff options
author | Linus Torvalds <[email protected]> | 2020-12-25 15:41:13 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-12-25 15:41:13 -0800 |
commit | 61d791365b72a89062fbbea69aa61479476da946 (patch) | |
tree | 1a0ddc065828cc2d1de6abd3396bb44e41b25b50 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5814bc2d4cc241c1a603fac2b5bf1bd4daa108fc (diff) |
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: 110b055b2827 ("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]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions