summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
diff options
context:
space:
mode:
authoryipechai <YiPeng.Chai@amd.com>2022-02-17 10:02:32 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-03-03 02:40:06 +0300
commitaa8e65dfc75f684cd46d49f71453ea3512a1e770 (patch)
tree447171770d98984acdc712a62d7f6931c1b5e0cd /drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
parentf148c143ef3f6e897f4a1012d1bcae3aa240bd8a (diff)
downloadlinux-aa8e65dfc75f684cd46d49f71453ea3512a1e770.tar.xz
drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block
Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block. Signed-off-by: yipechai <YiPeng.Chai@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
index 5595f903c17a..3f3d92e16c2e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
@@ -26,7 +26,5 @@
void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block)
{
- if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__HDP) &&
- ras_block)
- amdgpu_ras_block_late_fini(adev, ras_block);
+
}