diff options
| author | Rafael J. Wysocki <[email protected]> | 2020-03-29 14:11:18 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2020-04-01 09:38:49 +0000 |
| commit | b5252a6cbbdaefb2648abe8807beda8a28ec7603 (patch) | |
| tree | 15d9a5b183e146696dc2ca542b00e918cdd30edb /drivers/fpga/ice40-spi.c | |
| parent | PM: hibernate: Propagate the return value of hibernation_restore() (diff) | |
| download | kernel-b5252a6cbbdaefb2648abe8807beda8a28ec7603.tar.gz kernel-b5252a6cbbdaefb2648abe8807beda8a28ec7603.zip | |
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/ice40-spi.c')
0 files changed, 0 insertions, 0 deletions
