drm/amdgpu: remove useless code in RAS
authorGuchun Chen <guchun.chen@amd.com>
Tue, 2 Jun 2020 05:53:09 +0000 (13:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jun 2020 20:47:43 +0000 (16:47 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index c4ccc7f6637d8edfc82facd1061b3bfc04f55ae1..9bfe59b700301a1f3598131385e6cf1750ee6cd1 100644 (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;