linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v2] drm/radeon: use list_move instead of list_del/list_add in radeon_vm.c
@ 2021-06-09  7:12 Baokun Li
  0 siblings, 0 replies; only message in thread
From: Baokun Li @ 2021-06-09  7:12 UTC (permalink / raw)
  To: linux-kernel, Alex Deucher, Christian König, Pan, Xinhui,
	David Airlie, Daniel Vetter
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1,
	amd-gfx, dri-devel, kernel-janitors, Hulk Robot

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
	CC mailist

 drivers/gpu/drm/radeon/radeon_vm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c
index 36a38adaaea9..b86c60ab0f7e 100644
--- a/drivers/gpu/drm/radeon/radeon_vm.c
+++ b/drivers/gpu/drm/radeon/radeon_vm.c
@@ -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);
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-09  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09  7:12 [PATCH -next v2] drm/radeon: use list_move instead of list_del/list_add in radeon_vm.c Baokun Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).