drm/amdgpu: remove useless code in RAS

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>
This commit is contained in:
Guchun Chen 2020-06-02 13:53:09 +08:00 committed by Alex Deucher
parent 5e91160ac0
commit 9e69b1ee1d

View File

@ -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;