Skip to content

Commit a895c28

Browse files
JoePerchesbjorn-helgaas
authored andcommitted
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>
1 parent a006482 commit a895c28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/pci.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,11 +1749,11 @@ static inline int pci_pcie_cap(struct pci_dev *dev)
17491749
* pci_is_pcie - check if the PCI device is PCI Express capable
17501750
* @dev: PCI device
17511751
*
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.
17531753
*/
17541754
static inline bool pci_is_pcie(struct pci_dev *dev)
17551755
{
1756-
return !!pci_pcie_cap(dev);
1756+
return pci_pcie_cap(dev);
17571757
}
17581758

17591759
/**

0 commit comments

Comments
 (0)