Skip to content

Commit a4ca26a

Browse files
htejunrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 949db15 commit a4ca26a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/base/power/domain.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,7 @@ static bool genpd_abort_poweroff(struct generic_pm_domain *genpd)
433433
*/
434434
void genpd_queue_power_off_work(struct generic_pm_domain *genpd)
435435
{
436-
if (!work_pending(&genpd->power_off_work))
437-
queue_work(pm_wq, &genpd->power_off_work);
436+
queue_work(pm_wq, &genpd->power_off_work);
438437
}
439438

440439
/**

0 commit comments

Comments
 (0)