Commit f7de7621f07495ad14fb23a812003bcf8f6af65a

Authored by Stefan Richter
Committed by Arjan van de Ven
1 parent 766ccb9ed4

async: use list_move_tail

list.h provides a dedicated primitive for
"list_del followed by list_add_tail"... list_move_tail.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -133,8 +133,7 @@
133 133 entry = list_first_entry(&async_pending, struct async_entry, list);
134 134  
135 135 /* 2) move it to the running queue */
136   - list_del(&entry->list);
137   - list_add_tail(&entry->list, entry->running);
  136 + list_move_tail(&entry->list, entry->running);
138 137 spin_unlock_irqrestore(&async_lock, flags);
139 138  
140 139 /* 3) run it (and print duration)*/