vmlfb: use list_move() instead of list_del()/list_add() combination
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
9913319fc0
commit
1721af4d85
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue