[SPARC64]: Use shorter list_splice_init() for brevity.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
64658743fd
commit
1f17131bb4
@ -972,8 +972,7 @@ static void process_ds_work(void)
|
|||||||
LIST_HEAD(todo);
|
LIST_HEAD(todo);
|
||||||
|
|
||||||
spin_lock_irqsave(&ds_lock, flags);
|
spin_lock_irqsave(&ds_lock, flags);
|
||||||
list_splice(&ds_work_list, &todo);
|
list_splice_init(&ds_work_list, &todo);
|
||||||
INIT_LIST_HEAD(&ds_work_list);
|
|
||||||
spin_unlock_irqrestore(&ds_lock, flags);
|
spin_unlock_irqrestore(&ds_lock, flags);
|
||||||
|
|
||||||
list_for_each_entry_safe(qp, tmp, &todo, list) {
|
list_for_each_entry_safe(qp, tmp, &todo, list) {
|
||||||
|
Reference in New Issue
Block a user