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: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Tejun Heo 2013-01-11 13:37:23 +01:00 committed by Rafael J. Wysocki
parent 949db153b6
commit a4ca26a43e

View File

@ -433,8 +433,7 @@ 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);
} }
/** /**