Skip to contentSkip to conversation

drm/amdgpu: Remove ununsed variable from amdgpu_ib_pool_init

PATCH In review Anson Jacob 3 participants 3 messages Sep 13, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Remove ununsed variable from amdgpu_ib_pool_init

Remove unused variable 'size'.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -1
index 9274f32c3661..bc1297dcdf97 100644
@@ -300,7 +300,6 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
  */
 int amdgpu_ib_pool_init(struct amdgpu_device *adev)
 {
-	unsigned size;
 	int r, i;
 
 	if (adev->ib_pool_ready)
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Anson Jacob

Remove unused variable 'size'.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -2
index 9274f32c3661..bc1297dcdf97 100644
@@ -300,7 +300,6 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
  */
 int amdgpu_ib_pool_init(struct amdgpu_device *adev)
 {
-       unsigned size;
        int r, i;
 
        if (adev->ib_pool_ready)
--

2.25.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Anson Jacob

Am 13.09.21 um 19:27 schrieb Anson Jacob:

Quoted 3 lines

Remove unused variable 'size'.

Yeah, that's because of the recent change that we now use the same size for everything.

Quoted 16 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -1
index 9274f32c3661..bc1297dcdf97 100644
@@ -300,7 +300,6 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
   */
  int amdgpu_ib_pool_init(struct amdgpu_device *adev)
  {
-	unsigned size;
  	int r, i;
 
  	if (adev->ib_pool_ready)