Skip to content

Commit

Permalink
drm/amdgpu: remove useless code in RAS
Browse files Browse the repository at this point in the history
Module parameter amdgpu_ras_mask has been involved in
the calculation of ras support capability, so drop this
redundant code.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Guchun Chen authored and Alex Deucher committed Jun 2, 2020
1 parent 5e91160 commit 9e69b1e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -1938,8 +1938,6 @@ int amdgpu_ras_init(struct amdgpu_device *adev)
goto err_out;
}

amdgpu_ras_mask &= AMDGPU_RAS_BLOCK_MASK;

if (amdgpu_ras_fs_init(adev)) {
r = -EINVAL;
goto err_out;
Expand Down

0 comments on commit 9e69b1e

Please sign in to comment.