diff options
| author | Nikita Zhandarovich <n.zhandarovich@fintech.ru> | 2025-01-14 16:58:56 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-13 05:02:56 +0300 |
| commit | 189abca05a89fc7b422811e497a7116b3e4f4dca (patch) | |
| tree | 08b8f1a8407064ff9d601f7bf4c067fbd18f449a /tools/perf/scripts/python/stackcollapse.py | |
| parent | f7a594e40517fa2ab25d5ca10e7b6a158f529fb5 (diff) | |
| download | linux-189abca05a89fc7b422811e497a7116b3e4f4dca.tar.xz | |
drm/radeon/ci_dpm: Remove needless NULL checks of dpm tables
This patch removes useless NULL pointer checks in functions like
ci_set_private_data_variables_based_on_pptable() and
ci_setup_default_dpm_tables().
The pointers in question are initialized as addresses to existing
structures such as rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk by
utilizing & operator and therefore are not in danger of being NULL.
Fix this by removing extra checks thus cleaning the code a tiny bit.
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: cc8dbbb4f62a ("drm/radeon: add dpm support for CI dGPUs (v2)")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
