]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:16:18 +0000 (15:16 +0200)
commit2e3458b995aa57c947a2a4be2d844f3807a6d1e7
treede7722645cfec2a2d7fa8059eb991b1703134be3
parentf236fa38508b5153505543fb80c096184df9abfc
PCI/ERR: Simplify by computing pci_pcie_type() once

[ Upstream commit 480ef7cb9fcebda7b28cbed4f6cdcf0a02f4a6ca ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pcie/aer.c
drivers/pci/pcie/err.c
drivers/pci/pcie/portdrv_pci.c