Skip to content

Commit f091837

Browse files
committed
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]>
1 parent 98634aa commit f091837

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pci/pci-acpi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,7 @@ bool acpi_pci_power_manageable(struct pci_dev *dev)
972972
{
973973
struct acpi_device *adev = ACPI_COMPANION(&dev->dev);
974974

975-
if (!adev)
976-
return false;
977-
return acpi_device_power_manageable(adev);
975+
return adev && acpi_device_power_manageable(adev);
978976
}
979977

980978
bool acpi_pci_bridge_d3(struct pci_dev *dev)

0 commit comments

Comments
 (0)