drm/radeon/ni_dpm: remove redundant NULL check
authorNikita Zhandarovich <n.zhandarovich@fintech.ru>
Wed, 17 Jan 2024 14:45:14 +0000 (06:45 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jan 2024 21:56:28 +0000 (16:56 -0500)
commit059e7c6b8f5e4af624fc38cf99dd891051bd94d3
tree3c6a69fe06d52087353f0204a6319989424e25fc
parentbf38a4e4ab6833174ba81bd1c13f7620cd920583
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: 69e0b57a91ad ("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>
drivers/gpu/drm/radeon/ni_dpm.c