summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2024-05-02 14:18:08 +0530
committerAlex Deucher <alexander.deucher@amd.com>2024-05-03 09:06:47 -0400
commitb0923d5d80facb205cc2b7f82994ab5c3eef3181 (patch)
treebb28d39d57562a57a4ba90224310e0ee13c63a00 /drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
parent9243e0e206bbf8799add08cc66f807cbe085c9d2 (diff)
drm/amdgpu: remove ip dump reg_count variable
reg_count is not used and the register count is directly derived from the array size and hence removed. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index 536287ddd2ec..3171ed5e5af3 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
@@ -4592,10 +4592,8 @@ static void gfx_v10_0_alloc_dump_mem(struct amdgpu_device *adev)
if (ptr == NULL) {
DRM_ERROR("Failed to allocate memory for IP Dump\n");
adev->gfx.ip_dump = NULL;
- adev->gfx.reg_count = 0;
} else {
adev->gfx.ip_dump = ptr;
- adev->gfx.reg_count = reg_count;
}
}