PCI/AER: Use cached AER Capability offset
authorFrederick Lawler <fred@fredlawl.com>
Thu, 22 Mar 2018 21:20:55 +0000 (16:20 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Fri, 30 Mar 2018 22:26:59 +0000 (17:26 -0500)
commitf0553ba08a19031726f120448eedc3aff1599c23
tree201fa5b774ff6878712f8cad042f2cf459c3a79e
parentd850882b726f6db01b0792151e72e69b234aa461
PCI/AER: Use cached AER Capability offset

Replace pci_find_ext_capability(..., PCI_EXT_CAP_ID_ERR) calls with
pci_dev->aer_cap.

pci_dev->aer_cap is initialized in pci_init_capabilities(), which happens
before any of these users of the AER Capability.

Signed-off-by: Frederick Lawler <fred@fredlawl.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aer_inject.c
drivers/pci/pcie/aer/ecrc.c
drivers/pci/pcie/portdrv_core.c