drm/amdgpu: Remove repeated calls
authoryipechai <YiPeng.Chai@amd.com>
Mon, 17 Jan 2022 03:23:59 +0000 (11:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jan 2022 03:32:19 +0000 (22:32 -0500)
Remove repeated calls.

Signed-off-by: yipechai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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 7a1d2ba..4992bc5 100644 (file)
@@ -1704,9 +1704,7 @@ static void amdgpu_ras_log_on_err_counter(struct amdgpu_device *adev)
 static void amdgpu_ras_error_status_query(struct amdgpu_device *adev,
                                          struct ras_query_if *info)
 {
-       struct amdgpu_ras_block_object *block_obj = amdgpu_ras_get_ras_block(adev,
-                                                                       info->head.block,
-                                                                       info->head.sub_block_index);
+       struct amdgpu_ras_block_object *block_obj;
        /*
         * Only two block need to query read/write
         * RspStatus at current state