diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2009-02-26 05:05:30 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-03-04 18:04:40 -0500 |
commit | aa2d0b8b97efa1033609ca89b9faa5d3a1232959 (patch) | |
tree | b7fd99a540a30d8a81df75718ebdd9a16997e964 /drivers/dma | |
parent | 5de22343b2303b278ab562e5d166ffe306566d30 (diff) |
I/OAT: list usage cleanup
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 <snakebyte@gmx.de>
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ioat_dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c index fc9b845ee893..ae8c0ce3b86a 100644 --- a/drivers/dma/ioat_dma.c +++ b/drivers/dma/ioat_dma.c | |||
@@ -1171,9 +1171,8 @@ static void ioat_dma_memcpy_cleanup(struct ioat_dma_chan *ioat_chan) | |||
1171 | * up if the client is done with the descriptor | 1171 | * up if the client is done with the descriptor |
1172 | */ | 1172 | */ |
1173 | if (async_tx_test_ack(&desc->async_tx)) { | 1173 | if (async_tx_test_ack(&desc->async_tx)) { |
1174 | list_del(&desc->node); | 1174 | list_move_tail(&desc->node, |
1175 | list_add_tail(&desc->node, | 1175 | &ioat_chan->free_desc); |
1176 | &ioat_chan->free_desc); | ||
1177 | } else | 1176 | } else |
1178 | desc->async_tx.cookie = 0; | 1177 | desc->async_tx.cookie = 0; |
1179 | } else { | 1178 | } else { |