lkml.org 
[lkml]   [2009]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] Add proper list function
From
Trivial cleanup, where list_del and list_add_tail is replaced by
list_move_tail...


Signed-off-by: Tej Parkash <tej.parkash@hcl.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));
}

\
 
 \ /
  Last update: 2009-02-27 11:45    [W:0.068 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site