From: Myron Stowe Date: Fri, 1 Jun 2012 21:16:31 +0000 (-0600) Subject: PCI: remove redundant checking in PCI Express capability routines X-Git-Tag: v3.6-rc1~112^2~17^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb97ae3485955401d637bd269b0d24d3cd3fd3ec;p=pandora-kernel.git 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 Signed-off-by: Myron Stowe Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed