Skip to content

Commit

Permalink
[SPARC64]: Use shorter list_splice_init() for brevity.
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Robert P. J. Day authored and David S. Miller committed Mar 24, 2008
1 parent 6465874 commit 1f17131
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc64/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,8 +972,7 @@ static void process_ds_work(void)
LIST_HEAD(todo);

spin_lock_irqsave(&ds_lock, flags);
list_splice(&ds_work_list, &todo);
INIT_LIST_HEAD(&ds_work_list);
list_splice_init(&ds_work_list, &todo);
spin_unlock_irqrestore(&ds_lock, flags);

list_for_each_entry_safe(qp, tmp, &todo, list) {
Expand Down

0 comments on commit 1f17131

Please sign in to comment.