PCI: PM: Simplify acpi_pci_power_manageable()

Make acpi_pci_power_manageable() more straightforward.

No functional impact.

Signed-off-by: Rafael J. Wysocki <[email protected]>
Tested-by: Ferry Toth <[email protected]>
This commit is contained in:
Rafael J. Wysocki committed 2021-10-05 15:26:23 +02:00
1 parent 98634aa8d8
commit f091837121
1 file changed
+1 -3
+1 -3
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)