Skip to content

Commit

Permalink
I/OAT: list usage cleanup
Browse files Browse the repository at this point in the history
Trivial cleanup, list_del(); list_add_tail() is equivalent
to list_move_tail(). Semantic patch for coccinelle can be
found at www.cccmz.de/~snakebyte/list_move_tail.spatch

Signed-off-by: Eric Sesterhenn <[email protected]>
Signed-off-by: Maciej Sosnowski <[email protected]>
Signed-off-by: Shannon Nelson <[email protected]>
Acked-by: Jeff Kirsher <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
SesterhennEric authored and djbw committed Mar 4, 2009
1 parent 5de2234 commit aa2d0b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/dma/ioat_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,9 +1171,8 @@ static void ioat_dma_memcpy_cleanup(struct ioat_dma_chan *ioat_chan)
* up if the client is done with the descriptor
*/
if (async_tx_test_ack(&desc->async_tx)) {
list_del(&desc->node);
list_add_tail(&desc->node,
&ioat_chan->free_desc);
list_move_tail(&desc->node,
&ioat_chan->free_desc);
} else
desc->async_tx.cookie = 0;
} else {
Expand Down

0 comments on commit aa2d0b8

Please sign in to comment.