Skip to contentSkip to conversation

drm/amdgpu: Remove unused variable in amdgpu_device_gpu_recover

PATCH In review Harry Wentland 3 participants 3 messages May 23, 2018 – May 24, 2018 2 messages not in the archive

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

PATCH 1/1 drm/amdgpu: Remove unused variable in amdgpu_device_gpu_recover

It throws an unused variable warning.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -1
index c1654a4dfd82..57a4f393ada3 100644
@@ -3179,7 +3179,6 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
 int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
 			      struct amdgpu_job *job, bool force)
 {
-	struct drm_atomic_state *state = NULL;
 	int i, r, resched;
 
 	if (!force && !amdgpu_device_ip_check_soft_reset(adev)) {
Signature · 6 lines
2.17.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180523170819.18775-1-harry.wentland-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Andrey

Quoted 12 lines · Harry Wentland

It throws an unused variable warning.

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index c1654a4dfd82..57a4f393ada3 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_reset_sriov(struct amdgpu_device *adev, · line 3184

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -1
@@ -3179,7 +3179,6 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
  int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
  			      struct amdgpu_job *job, bool force)
  {
-	struct drm_atomic_state *state = NULL;
  	int i, r, resched;
 
  	if (!force && !amdgpu_device_ip_check_soft_reset(adev)) {

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 2b4d2215-e1aa-cfa7-2edd-6a7fd1188c02-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#4 lore raw

Christian.

Am 23.05.2018 um 19:11 schrieb Andrey Grodzovsky:

Quoted 22 lines

Andrey

Quoted 16 lines · Harry Wentland

It throws an unused variable warning.

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 -

  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index c1654a4dfd82..57a4f393ada3 100644
@@ -3179,7 +3179,6 @@ static int amdgpu_device_reset_sriov(struct 
 amdgpu_device *adev,
   int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
                     struct amdgpu_job *job, bool force)
   {
Quoted 8 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c static int amdgpu_device_reset_sriov(struct amdgpu_device *adev, · line 3184

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -1
-    struct drm_atomic_state *state = NULL;
       int i, r, resched;
         if (!force && !amdgpu_device_ip_check_soft_reset(adev)) {

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx