]> Pileus Git - ~andy/linux/commitdiff
PCI: Fix comment typo, remove unnecessary !! in pci_is_pcie()
authorJoe Perches <joe@perches.com>
Tue, 3 Sep 2013 20:31:05 +0000 (13:31 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Sep 2013 21:42:53 +0000 (15:42 -0600)
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>
include/linux/pci.h

index da172f956ad6f0a6ff883d125ca70e9f97510612..ee0f3b60af222770b9b2687379d2283e3718f4d2 100644 (file)
@@ -1749,11 +1749,11 @@ static inline int pci_pcie_cap(struct pci_dev *dev)
  * pci_is_pcie - check if the PCI device is PCI Express capable
  * @dev: PCI device
  *
- * Retrun true if the PCI device is PCI Express capable, false otherwise.
+ * Returns: true if the PCI device is PCI Express capable, false otherwise.
  */
 static inline bool pci_is_pcie(struct pci_dev *dev)
 {
-       return !!pci_pcie_cap(dev);
+       return pci_pcie_cap(dev);
 }
 
 /**