Commit a4ca26a4 authored by Tejun Heo's avatar Tejun Heo Committed by Rafael J. Wysocki

PM / Domains: don't use [delayed_]work_pending()

There's no need to test whether a (delayed) work item is pending
before queueing, flushing or cancelling it, so remove work_pending()
tests used in those cases.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 949db153
...@@ -433,7 +433,6 @@ static bool genpd_abort_poweroff(struct generic_pm_domain *genpd) ...@@ -433,7 +433,6 @@ static bool genpd_abort_poweroff(struct generic_pm_domain *genpd)
*/ */
void genpd_queue_power_off_work(struct generic_pm_domain *genpd) void genpd_queue_power_off_work(struct generic_pm_domain *genpd)
{ {
if (!work_pending(&genpd->power_off_work))
queue_work(pm_wq, &genpd->power_off_work); queue_work(pm_wq, &genpd->power_off_work);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment