drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c
Subsystems (4)
PATCH v2 1/1 drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c
Using list_move() instead of list_del() + list_add() in nv40.c.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Baokun Li <[email protected]>
---V1->V2:
CC mailist
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c +1 -2
@@ -252,8 +252,7 @@ nv40_gr_intr(struct nvkm_gr *base)list_for_each_entry (temp, &gr->chan, head) {if (temp->inst >>4 == inst) { chan = temp; -list_del (&chan->head); -list_add (&chan->head, &gr->chan); +list_move (&chan->head, &gr->chan);break ; } }