Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1721af4d authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Paul Mundt
Browse files

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

parent 9913319f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);