Merge tag 'mediatek-drm-next-5.15' of https://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / dma / sun4i-dma.c
index e8b6633..93f1645 100644 (file)
@@ -1042,9 +1042,8 @@ handle_pending:
                         * Move the promise into the completed list now that
                         * we're done with it
                         */
-                       list_del(&vchan->processing->list);
-                       list_add_tail(&vchan->processing->list,
-                                     &contract->completed_demands);
+                       list_move_tail(&vchan->processing->list,
+                                      &contract->completed_demands);
 
                        /*
                         * Cyclic DMA transfers are special: