PCI/ERR: Simplify by computing pci_pcie_type() once
authorSean V Kelley <sean.v.kelley@intel.com>
Sat, 21 Nov 2020 00:10:27 +0000 (16:10 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2020 17:18:58 +0000 (11:18 -0600)
commit480ef7cb9fcebda7b28cbed4f6cdcf0a02f4a6ca
tree7fcea99854eb67100e8a2172341d8ab27e325eec
parent5d69dcc9f839bd2d5cac7a098712f52149e1673f
PCI/ERR: Simplify by computing pci_pcie_type() once

Instead of calling pci_pcie_type(dev) twice, call it once and save the
result.  No functional change intended.

Link: https://lore.kernel.org/r/20201121001036.8560-7-sean.v.kelley@intel.com
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # non-native/no RCEC
Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/pcie/aer.c
drivers/pci/pcie/err.c
drivers/pci/pcie/portdrv_pci.c