OSDN Git Service

PCI/PM: Fold __pci_complete_power_transition() into its caller
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Nov 2019 16:32:08 +0000 (17:32 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Nov 2019 23:36:08 +0000 (17:36 -0600)
commit9c77e63bd8dcbb3b59294e9176c00c5fcab3c9c6
tree51d7816e7d005bb8341685686aa0d7d724c812af
parentd6aa37cd04fdafaf31ae89691e537535df43ca78
PCI/PM: Fold __pci_complete_power_transition() into its caller

Because pci_set_power_state() has become the only caller of
__pci_complete_power_transition(), there is no need for the latter to
be a separate function any more, so fold it into the former, drop a
redundant check and reduce the number of lines of code somewhat.

Code rearrangement, no intentional functional impact.

Link: https://lore.kernel.org/r/15576968.k611qn3UU0@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pci.c