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:
parent
98634aa8d8
commit
f091837121
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user