aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-03 16:31:05 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-09-25 17:42:53 -0400
commita895c28a1f5d761679cb229b19fb08ca2067211e (patch)
tree9474520a47cf2021fdab34e4c7d29ac50b67b3f1
parenta006482b67a96c16dfefc558e36863c51e1829bf (diff)
PCI: Fix comment typo, remove unnecessary !! in pci_is_pcie()
Use normal kernel-doc "Returns:" instead of "retrun" Assignment to bool is always 1 or 0 so the !! isn't necessary. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--include/linux/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index da172f956ad6..ee0f3b60af22 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1749,11 +1749,11 @@ static inline int pci_pcie_cap(struct pci_dev *dev)
1749 * pci_is_pcie - check if the PCI device is PCI Express capable 1749 * pci_is_pcie - check if the PCI device is PCI Express capable
1750 * @dev: PCI device 1750 * @dev: PCI device
1751 * 1751 *
1752 * Retrun true if the PCI device is PCI Express capable, false otherwise. 1752 * Returns: true if the PCI device is PCI Express capable, false otherwise.
1753 */ 1753 */
1754static inline bool pci_is_pcie(struct pci_dev *dev) 1754static inline bool pci_is_pcie(struct pci_dev *dev)
1755{ 1755{
1756 return !!pci_pcie_cap(dev); 1756 return pci_pcie_cap(dev);
1757} 1757}
1758 1758
1759/** 1759/**