aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/autosleep.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-01-11 07:37:33 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-25 18:39:11 -0500
commited1ac6e91a3ff7c561008ba57747cd6cbc49385e (patch)
tree52598ded2a8bea2486170169b4687ad8aadf8a67 /kernel/power/autosleep.c
parenta4ca26a43e39d521b3913f09faf82dfbbbca5f6a (diff)
PM: 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>
Diffstat (limited to 'kernel/power/autosleep.c')
-rw-r--r--kernel/power/autosleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/autosleep.c b/kernel/power/autosleep.c
index ca304046d9e2..c6422ffeda9a 100644
--- a/kernel/power/autosleep.c
+++ b/kernel/power/autosleep.c
@@ -66,7 +66,7 @@ static DECLARE_WORK(suspend_work, try_to_suspend);
66 66
67void queue_up_suspend_work(void) 67void queue_up_suspend_work(void)
68{ 68{
69 if (!work_pending(&suspend_work) && autosleep_state > PM_SUSPEND_ON) 69 if (autosleep_state > PM_SUSPEND_ON)
70 queue_work(autosleep_wq, &suspend_work); 70 queue_work(autosleep_wq, &suspend_work);
71} 71}
72 72