Commit 9913319f authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Paul Mundt

omap: use list_move() instead of list_del()/list_add() combination

Signed-off-by: default avatarKirill A. Shutemov <kirill@shutemov.name>
Acked-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 4fdf30c4
...@@ -397,8 +397,7 @@ static inline void free_req(struct blizzard_request *req) ...@@ -397,8 +397,7 @@ static inline void free_req(struct blizzard_request *req)
spin_lock_irqsave(&blizzard.req_lock, flags); spin_lock_irqsave(&blizzard.req_lock, flags);
list_del(&req->entry); list_move(&req->entry, &blizzard.free_req_list);
list_add(&req->entry, &blizzard.free_req_list);
if (!(req->flags & REQ_FROM_IRQ_POOL)) if (!(req->flags & REQ_FROM_IRQ_POOL))
up(&blizzard.req_sema); up(&blizzard.req_sema);
......
...@@ -269,8 +269,7 @@ static inline void free_req(struct hwa742_request *req) ...@@ -269,8 +269,7 @@ static inline void free_req(struct hwa742_request *req)
spin_lock_irqsave(&hwa742.req_lock, flags); spin_lock_irqsave(&hwa742.req_lock, flags);
list_del(&req->entry); list_move(&req->entry, &hwa742.free_req_list);
list_add(&req->entry, &hwa742.free_req_list);
if (!(req->flags & REQ_FROM_IRQ_POOL)) if (!(req->flags & REQ_FROM_IRQ_POOL))
up(&hwa742.req_sema); up(&hwa742.req_sema);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment