lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ