PM: don't use [delayed_]work_pending()
authorTejun Heo <tj@kernel.org>
Fri, 11 Jan 2013 12:37:33 +0000 (13:37 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 23:39:11 +0000 (00:39 +0100)
commited1ac6e91a3ff7c561008ba57747cd6cbc49385e
tree52598ded2a8bea2486170169b4687ad8aadf8a67
parenta4ca26a43e39d521b3913f09faf82dfbbbca5f6a
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>
kernel/power/autosleep.c
kernel/power/qos.c