diff options
author | Kevin Wang <kevin1.wang@amd.com> | 2020-08-06 18:41:47 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-08-18 23:59:26 +0300 |
commit | f5261bec20f4ed1795d7873ffcda649db686f195 (patch) | |
tree | 51cd41f764faf9bf15284a2ab0cf376339ba276b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9c9b17a7d19a8e21db2e378784fff1128b46c9d3 (diff) | |
download | linux-f5261bec20f4ed1795d7873ffcda649db686f195.tar.xz |
drm/amdgpu: fix uninit-value in arcturus_log_thermal_throttling_event()
when function arcturus_get_smu_metrics_data() call failed,
it will cause the variable "throttler_status" isn't initialized before use.
warning:
powerplay/arcturus_ppt.c:2268:24: warning: ‘throttler_status’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2268 | if (throttler_status & logging_label[throttler_idx].feature_mask) {
Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions