Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Sesterhenn and committed by
Dan Williams
aa2d0b8b 5de22343

+2 -3
+2 -3
drivers/dma/ioat_dma.c
··· 1171 1171 * up if the client is done with the descriptor 1172 1172 */ 1173 1173 if (async_tx_test_ack(&desc->async_tx)) { 1174 - list_del(&desc->node); 1175 - list_add_tail(&desc->node, 1176 - &ioat_chan->free_desc); 1174 + list_move_tail(&desc->node, 1175 + &ioat_chan->free_desc); 1177 1176 } else 1178 1177 desc->async_tx.cookie = 0; 1179 1178 } else {