Commit 479f4a6e authored by vulab's avatar vulab Committed by Mauro Carvalho Chehab
Browse files

media: mtk-mdp: Remove redundant 'flush_workqueue()' calls



'destroy_workqueue()' already drains the queue before destroying it, so
there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 55318914
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -245,10 +245,8 @@ static int mtk_mdp_remove(struct platform_device *pdev)
	mtk_mdp_unregister_m2m_device(mdp);
	v4l2_device_unregister(&mdp->v4l2_dev);

	flush_workqueue(mdp->wdt_wq);
	destroy_workqueue(mdp->wdt_wq);

	flush_workqueue(mdp->job_wq);
	destroy_workqueue(mdp->job_wq);

	list_for_each_entry_safe(comp, comp_temp, &mdp->comp_list, node) {