summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-03-29 16:11:18 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-04-01 11:38:49 +0200
commitb5252a6cbbdaefb2648abe8807beda8a28ec7603 (patch)
tree15d9a5b183e146696dc2ca542b00e918cdd30edb /kernel
parent3704a6a445790e6621c19be25d85dfadbeb16a69 (diff)
PM: sleep: core: Drop racy and redundant checks from device_prepare()
Alan Stern points out that the WARN_ON() check in device_prepare() is racy (because the PM-runtime API can be disabled briefly for any device at any time and system suspend can start at any time too) and the pm_runtime_suspended() check in the computation of the direct_complete flag value is redundant (because it will be repeated later anyway). Drop both these checks accordingly. Reported-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions