PCI: PM: Rearrange pci_target_state()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Sep 2021 18:09:39 +0000 (20:09 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Oct 2021 13:38:05 +0000 (15:38 +0200)
commitbf39c929f9053cd840155a1c39494c9a9946836b
treebf71bf4f1c2a938ab4acaa065b18187868f40b6f
parentf09183712146909d56c9555e6901c10cc285339f
PCI: PM: Rearrange pci_target_state()

Make pci_target_state() return D3cold or D0 without checking PME
support if the current power state of the device is D3cold or if it
does not support the standard PCI PM, respectively.

Next, drop the tergat_state local variable that has become redundant
from it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Ferry Toth <fntoth@gmail.com>
drivers/pci/pci.c