[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f1c9d250902270242j64cc9f59g56ce68ca2a832564@mail.gmail.com>
Date: Fri, 27 Feb 2009 16:12:31 +0530
From: Tej <bewith.tej@...il.com>
To: Brian Swetland <swetland@...gle.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] Add proper list function
Trivial cleanup, where list_del and list_add_tail is replaced by
list_move_tail...
Signed-off-by: Tej Parkash <tej.parkash@....in>
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists