Skip to contentSkip to conversation

drm/radeon: use list_move instead of list_del/list_add in radeon_vm.c

PATCH New Baokun Li 1 participant 1 message Jun 9, 2021

Subsystems (3)
lore
Share & tools
lore

Baokun Li

author
#0 lore raw

PATCH v2 1/1 drm/radeon: use list_move instead of list_del/list_add in radeon_vm.c

Using list_move() instead of list_del() + list_add() in radeon_vm.c.

---
V1->V2:
CC mailist

 drivers/gpu/drm/radeon/radeon_vm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_vm.c +1 -2
index 36a38adaaea9..b86c60ab0f7e 100644
@@ -933,8 +933,7 @@ int radeon_vm_bo_update(struct radeon_device *rdev,
 		}
 		list_del_init(&bo_va->vm_status);
 	} else {
-		list_del(&bo_va->vm_status);
-		list_add(&bo_va->vm_status, &vm->cleared);
+		list_move(&bo_va->vm_status, &vm->cleared);
 	}
 	spin_unlock(&vm->status_lock);