From: Guchun Chen Date: Tue, 2 Jun 2020 05:53:09 +0000 (+0800) Subject: drm/amdgpu: remove useless code in RAS X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9e69b1ee1d9e1d58244279e39f032658df8cead6;p=linux.git 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 Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index c4ccc7f6637d8..9bfe59b700301 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -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;