]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MISDN: list usage cleanup
authorEric Sesterhenn <snakebyte@gmx.de>
Fri, 27 Feb 2009 06:38:15 +0000 (22:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 06:38:15 +0000 (22:38 -0800)
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>
Acked-by: Karsten Keil <kkeil@novell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/timerdev.c

index f2b32186d4a19f2fbec632b5a7cf7c915a94134a..bbd99d3282c0cf32299086fe8575450ca042b75f 100644 (file)
@@ -152,8 +152,7 @@ dev_expire_timer(unsigned long data)
        u_long                  flags;
 
        spin_lock_irqsave(&timer->dev->lock, flags);
-       list_del(&timer->list);
-       list_add_tail(&timer->list, &timer->dev->expired);
+       list_move_tail(&timer->list, &timer->dev->expired);
        spin_unlock_irqrestore(&timer->dev->lock, flags);
        wake_up_interruptible(&timer->dev->wait);
 }