mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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:
1 parent
98634aa8d8
commit
f091837121
1 file changed
+1
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user