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

Commit 7d0315a2 authored by Tejun Heo's avatar Tejun Heo
Browse files

video/exynos: don't use [delayed_]work_pending()



There's no need to test whether a (delayed) work item in pending
before queueing, flushing or cancelling it.  Most uses are unnecessary
and quite a few of them are buggy.

Remove unnecessary pending tests from exynos_dp_core.  Only compile
tested.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Acked-by: default avatarJingoo Han <jg1.han@samsung.com>
parent 7998005b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1121,7 +1121,6 @@ static int __devexit exynos_dp_remove(struct platform_device *pdev)

	disable_irq(dp->irq);

	if (work_pending(&dp->hotplug_work))
	flush_work(&dp->hotplug_work);

	if (pdev->dev.of_node) {
@@ -1144,7 +1143,6 @@ static int exynos_dp_suspend(struct device *dev)
	struct exynos_dp_platdata *pdata = dev->platform_data;
	struct exynos_dp_device *dp = dev_get_drvdata(dev);

	if (work_pending(&dp->hotplug_work))
	flush_work(&dp->hotplug_work);

	if (dev->of_node) {