drm/amdgpu: remove ip dump reg_count variable
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 -- 2 files changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +0 -1
@@ -436,7 +436,6 @@ struct amdgpu_gfx {/* IP reg dump */ uint32_t *ip_dump; -uint32_t reg_count; };struct amdgpu_gfx_ras_reg_entry {
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -2
@@ -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; } }
Signature · 1 line
2.34.1
Am 02.05.24 um 10:56 schrieb Sunil Khatri:
Quoted 5 lines
reg_countis not used and the register count is
directly derived from the array size and hence
removed.Signed-off-by Sunil Khatri <[email protected]>
Acked-by Christian König <[email protected]>
Quoted 32 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 -- 2 files changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +0
-1@@ -436,7 +436,6 @@ struct amdgpu_gfx {/* IP reg dump */ uint32_t *ip_dump; -uint32_t reg_count; };struct amdgpu_gfx_ras_reg_entry {drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-2@@ -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; } }