dmaengine: idxd: Use list_move_tail instead of list_del/list_add_tail
Subsystems (2)
PATCH 1/1 dmaengine: idxd: Use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail()
Reported-by Hulk Robot <[email protected]>
Signed-off-by Bixuan Cui <[email protected]>
--- drivers/dma/idxd/irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma/idxd/irq.c +1 -2
@@ -221,8 +221,7 @@ static void irq_process_work_list(struct idxd_irq_entry *irq_entry)list_for_each_entry_safe (desc, n, &irq_entry->work_list, list) {if (desc->completion->status) { -list_del (&desc->list); -list_add_tail (&desc->list, &flist); +list_move_tail (&desc->list, &flist); } }
Signature · 1 line
2.17.1
Quoted 4 lines · Bixuan Cui
Using
list_move_tail()instead oflist_del()+list_add_tail()Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>
Thanks!
Acked-by Dave Jiang <[email protected]>
Quoted 18 lines
--- drivers/dma/idxd/irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/dma/idxd/irq.c +1
-2@@ -221,8 +221,7 @@ static void irq_process_work_list(struct idxd_irq_entry *irq_entry)list_for_each_entry_safe (desc, n, &irq_entry->work_list, list) {if (desc->completion->status) { -list_del (&desc->list); -list_add_tail (&desc->list, &flist); +list_move_tail (&desc->list, &flist); } }
Quoted 1 line · Bixuan Cui
Using
list_move_tail()instead oflist_del()+list_add_tail()
Applied, thanks
Signature · 1 line
~Vinod