]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: PM: Do not call platform_pci_power_manageable() unnecessarily
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Sep 2021 18:15:06 +0000 (20:15 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Oct 2021 13:38:05 +0000 (15:38 +0200)
commit236269f28e1181c906b142b87e3be8f6dd2ce297
tree18c98f4d1e7f541673066248022acbdb68d2b224
parent589c826fe56d20cb8d8f7b664ddd37b43f7d585c
PCI: PM: Do not call platform_pci_power_manageable() unnecessarily

Drop two invocations of platform_pci_power_manageable() that are not
necessary, because the functions called when it returns 'true' do the
requisite "power manageable" checks themselves.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Ferry Toth <fntoth@gmail.com>
drivers/pci/pci.c