]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0377c6203bd7ef80ab047cf6506bd8293f8ee418
tree7fcea99854eb67100e8a2172341d8ab27e325eec
parentfb8e6e05944f5f2d6c3d9a8a5de7922f82ba9efd
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