drm/radeon/ni_dpm: remove redundant NULL check
'leakage_table' will always be successfully initialized as a pointer
to '&rdev->pm.dpm.dyn_state.cac_leakage_table'.
Remove unnecessary check if only to silence static checkers.
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool Svace.
Fixes: 69e0b57a91 ("drm/radeon/kms: add dpm support for cayman (v5)")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
bf38a4e4ab
commit
059e7c6b8f
@@ -3103,9 +3103,6 @@ static int ni_init_simplified_leakage_table(struct radeon_device *rdev,
|
||||
u32 smc_leakage, max_leakage = 0;
|
||||
u32 scaling_factor;
|
||||
|
||||
if (!leakage_table)
|
||||
return -EINVAL;
|
||||
|
||||
table_size = leakage_table->count;
|
||||
|
||||
if (eg_pi->vddc_voltage_table.count != table_size)
|
||||
|
||||
Reference in New Issue
Block a user