aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci_regs.h
diff options
context:
space:
mode:
authorMyron Stowe <myron.stowe@redhat.com>2012-06-01 15:16:31 -0600
committerBjorn Helgaas <bhelgaas@google.com>2012-06-11 20:40:57 -0600
commitcb97ae3485955401d637bd269b0d24d3cd3fd3ec (patch)
treeff55372324e4a4d0f9b1b59992b0d7dc29ce4aca /include/linux/pci_regs.h
parentPCI: make pci_ltr_supported() static (diff)
downloadlinux-dev-cb97ae3485955401d637bd269b0d24d3cd3fd3ec.tar.xz
linux-dev-cb97ae3485955401d637bd269b0d24d3cd3fd3ec.zip
PCI: remove redundant checking in PCI Express capability routines
There are a number of redundant pci_is_pcie() checks in various PCI Express capabilities related routines like the following: if (!pci_is_pcie(dev)) return false; pos = pci_pcie_cap(dev); if (!pos) return false; The current pci_is_pcie() implementation is merely: static inline bool pci_is_pcie(struct pci_dev *dev) { return !!pci_pcie_cap(dev); } so we can just drop the pci_is_pcie() test in such cases. Acked-by: Donald Dutile <ddutile@redhat.com> Signed-off-by: Myron Stowe <myron.stowe@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci_regs.h')
0 files changed, 0 insertions, 0 deletions