aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryipechai <[email protected]>2022-01-17 11:23:59 +0800
committerAlex Deucher <[email protected]>2022-01-19 22:32:19 -0500
commit8eb53bb2aa8afa170ba40f9460f2de4d4d138764 (patch)
tree87c7777967017ef425dba7b4455ad5afeef8932f
parent86700a402694db56030a74481d09f35520332736 (diff)
drm/amdgpu: Remove repeated calls
Remove repeated calls. Signed-off-by: yipechai <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 7a1d2bac698e..4992bc554c0c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -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