aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kasprintf.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-04-14 15:07:24 +0200
committerBjorn Helgaas <bhelgaas@google.com>2022-05-05 14:19:48 -0500
commit9c384ddd6eb2ee90d19cd01128748dec85fa36e3 (patch)
tree73a3a844595db376957cc136c8cb8e5ff3b1e494 /lib/kasprintf.c
parentPCI/PM: Drop the runtime_d3cold device flag (diff)
downloadlinux-dev-9c384ddd6eb2ee90d19cd01128748dec85fa36e3.tar.xz
linux-dev-9c384ddd6eb2ee90d19cd01128748dec85fa36e3.zip
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>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions