PCI: PM: Simplify acpi_pci_power_manageable()

Make acpi_pci_power_manageable() more straightforward.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Ferry Toth <fntoth@gmail.com>
This commit is contained in:
Rafael J. Wysocki 2021-09-20 21:17:39 +02:00
parent 98634aa8d8
commit f091837121

View File

@ -972,9 +972,7 @@ bool acpi_pci_power_manageable(struct pci_dev *dev)
{
struct acpi_device *adev = ACPI_COMPANION(&dev->dev);
if (!adev)
return false;
return acpi_device_power_manageable(adev);
return adev && acpi_device_power_manageable(adev);
}
bool acpi_pci_bridge_d3(struct pci_dev *dev)