summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2026-08-08 22:41:28 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-08-12 09:44:35 -0400
commitb4cb43789b6ac0f25fc0d9b21c5e7a6225cf6a31 (patch)
treede44b564693f15abceac89f83b6d8a3bebb4a14c /tools/perf/scripts/python/task-analyzer.py
parent24775b2e8bce78157acdae30adba4a68039187d7 (diff)
drm/amd/pm: silence uninitialized variable warnings
Smatch complains that: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu15/smu_v15_0_8_ppt.c:1964 smu_v15_0_8_set_performance_level() error: uninitialized symbol 'ret'. In this line there is an "if (ret)" condition where "ret" is either zero or uninitialized. Initialize "ret" at the start of the function to avoid a potential uninitialized variable bug. But also delete the condition since it is never true. Fixes: 422b399b09c7 ("drm/amd/pm: Add od_edit_dpm_table support") Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions