diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2009-02-26 22:38:15 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-26 22:38:15 -0800 |
commit | 211174ea8dca4502e20008de7ff2ad389db023a5 (patch) | |
tree | 506666774221c3f7e2048538157aa11475e9924f /drivers/isdn | |
parent | 4974097a97c6c11c22c2242f70821e2af65ef8e7 (diff) | |
download | linux-211174ea8dca4502e20008de7ff2ad389db023a5.tar.gz linux-211174ea8dca4502e20008de7ff2ad389db023a5.tar.bz2 linux-211174ea8dca4502e20008de7ff2ad389db023a5.zip |
MISDN: list usage cleanup
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>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/mISDN/timerdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c index f2b32186d4a1..bbd99d3282c0 100644 --- a/drivers/isdn/mISDN/timerdev.c +++ b/drivers/isdn/mISDN/timerdev.c @@ -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); } |