vmlfb: use list_move() instead of list_del()/list_add() combination
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 15 Mar 2011 22:53:19 +0000 (22:53 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 22 Mar 2011 06:13:38 +0000 (15:13 +0900)
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/vermilion/vermilion.c

index 931a567f9aff4219cf015f7855189725313b810b..970e43d13f52bdce1a4a5cfc4e782745ddf53657 100644 (file)
@@ -891,8 +891,7 @@ static int vmlfb_set_par(struct fb_info *info)
        int ret;
 
        mutex_lock(&vml_mutex);
-       list_del(&vinfo->head);
-       list_add(&vinfo->head, (subsys) ? &global_has_mode : &global_no_mode);
+       list_move(&vinfo->head, (subsys) ? &global_has_mode : &global_no_mode);
        ret = vmlfb_set_par_locked(vinfo);
 
        mutex_unlock(&vml_mutex);