Rafael J. Wysocki 9c384ddd6e PCI/PM: Rearrange pci_update_current_state()
Save one config space access in pci_update_current_state() by testing the
retrieved PCI_PM_CTRL register value against PCI_POSSIBLE_ERROR() instead
of invoking pci_device_is_present() separately.

While at it, drop a pair of unnecessary parens.

No expected functional impact.

Link: https://lore.kernel.org/r/1917095.PYKUYFuaPT@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2022-05-05 14:19:48 -05:00
..
2022-04-02 10:54:52 -07:00
2022-03-25 13:02:05 -07:00
2022-03-25 13:02:05 -07:00
2021-06-16 17:20:40 -05:00
2022-03-07 12:06:10 -07:00
2022-03-09 18:30:46 -06:00
2022-03-09 18:30:46 -06:00
2022-01-07 20:43:23 -06:00
2022-03-22 11:23:53 -05:00
2021-11-06 14:36:12 -07:00
2022-01-16 08:08:11 +02:00
2022-03-22 11:23:53 -05:00
2022-03-25 13:02:05 -07:00
2021-02-10 16:46:29 -06:00
2022-03-22 17:16:21 -05:00
2021-09-28 13:43:17 -05:00
2020-08-05 18:23:14 -05:00