omap: use list_move() instead of list_del()/list_add() combination
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 15 Mar 2011 22:53:18 +0000 (22:53 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 22 Mar 2011 06:13:35 +0000 (15:13 +0900)
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/omap/blizzard.c
drivers/video/omap/hwa742.c

index 87785c215a52c6e94ca9a0d799f1f25ed89c654d..c0504a8a5079cab34f364cbf29208dae3f91fb26 100644 (file)
@@ -397,8 +397,7 @@ static inline void free_req(struct blizzard_request *req)
 
        spin_lock_irqsave(&blizzard.req_lock, flags);
 
-       list_del(&req->entry);
-       list_add(&req->entry, &blizzard.free_req_list);
+       list_move(&req->entry, &blizzard.free_req_list);
        if (!(req->flags & REQ_FROM_IRQ_POOL))
                up(&blizzard.req_sema);
 
index 0016f77cd13fb076c09682586454598e97e0d386..084aa0ac562b022d66343d245be79e69d763dd78 100644 (file)
@@ -269,8 +269,7 @@ static inline void free_req(struct hwa742_request *req)
 
        spin_lock_irqsave(&hwa742.req_lock, flags);
 
-       list_del(&req->entry);
-       list_add(&req->entry, &hwa742.free_req_list);
+       list_move(&req->entry, &hwa742.free_req_list);
        if (!(req->flags & REQ_FROM_IRQ_POOL))
                up(&hwa742.req_sema);