提交 1721af4d 编写于 作者: K Kirill A. Shutemov 提交者: Paul Mundt

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

Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 9913319f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册