[PATCH] Add proper list function

From: Tej
Date: Fri Feb 27 2009 - 05:42:48 EST


Trivial cleanup, where list_del and list_add_tail is replaced by
list_move_tail...


Signed-off-by: Tej Parkash <tej.parkash@xxxxxx>

diff --git a/arch/arm/mach-msm/dma.c b/arch/arm/mach-msm/dma.c
index f5420f9..30f52c2 100644
--- a/arch/arm/mach-msm/dma.c
+++ b/arch/arm/mach-msm/dma.c
@@ -208,8 +208,7 @@ static irqreturn_t msm_datamover_irq_handler(int
irq, void *dev_id)
PRINT_FLOW("msm_datamover_irq_handler id %d,
status %x\n", id, ch_status);
if ((ch_status & DMOV_STATUS_CMD_PTR_RDY) &&
!list_empty(&ready_commands[id])) {
cmd =
list_entry(ready_commands[id].next, typeof(*cmd), list);
- list_del(&cmd->list);
- list_add_tail(&cmd->list, &active_commands[id]);
+ list_move_tail(&cmd->list,
&active_commands[id]);
PRINT_FLOW("msm_datamover_irq_handler
id %d, start command\n", id);
writel(cmd->cmdptr, DMOV_CMD_PTR(id));
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/