diff options
author | Ryan Desfosses <ryan@desfo.org> | 2014-04-18 20:13:49 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-06-10 20:20:19 -0600 |
commit | 3c78bc61f5ef3bc87e7f94f67ec737d2273f120b (patch) | |
tree | 490efb8676389718e78a4d6775ad668538ecaf4f /drivers/pci/search.c | |
parent | b7fe943421396b61b9f7a97c2554ed999e0f3658 (diff) | |
download | lwn-3c78bc61f5ef3bc87e7f94f67ec737d2273f120b.tar.gz lwn-3c78bc61f5ef3bc87e7f94f67ec737d2273f120b.zip |
PCI: Whitespace cleanup
Fix various whitespace errors.
No functional change.
[bhelgaas: fix other similar problems]
Signed-off-by: Ryan Desfosses <ryan@desfo.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/search.c')
-rw-r--r-- | drivers/pci/search.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/pci/search.c b/drivers/pci/search.c index a66ed7525841..827ad831f1dd 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -110,8 +110,7 @@ int pci_for_each_dma_alias(struct pci_dev *pdev, * legacy PCI bridge and the bridge is directly connected to bus 0), return its * parent */ -struct pci_dev * -pci_find_upstream_pcie_bridge(struct pci_dev *pdev) +struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev) { struct pci_dev *tmp = NULL; @@ -143,12 +142,12 @@ static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) struct pci_bus *child; struct pci_bus *tmp; - if(bus->number == busnr) + if (bus->number == busnr) return bus; list_for_each_entry(tmp, &bus->children, node) { child = pci_do_find_bus(tmp, busnr); - if(child) + if (child) return child; } return NULL; @@ -163,7 +162,7 @@ static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) * in the global list of PCI buses. If the bus is found, a pointer to its * data structure is returned. If no bus is found, %NULL is returned. */ -struct pci_bus * pci_find_bus(int domain, int busnr) +struct pci_bus *pci_find_bus(int domain, int busnr) { struct pci_bus *bus = NULL; struct pci_bus *tmp_bus; @@ -188,8 +187,7 @@ EXPORT_SYMBOL(pci_find_bus); * @from is not %NULL, searches continue from next device on the * global list. */ -struct pci_bus * -pci_find_next_bus(const struct pci_bus *from) +struct pci_bus *pci_find_next_bus(const struct pci_bus *from) { struct list_head *n; struct pci_bus *b = NULL; @@ -357,8 +355,8 @@ EXPORT_SYMBOL(pci_get_subsys); * from next device on the global list. The reference count for @from is * always decremented if it is not %NULL. */ -struct pci_dev * -pci_get_device(unsigned int vendor, unsigned int device, struct pci_dev *from) +struct pci_dev *pci_get_device(unsigned int vendor, unsigned int device, + struct pci_dev *from) { return pci_get_subsys(vendor, device, PCI_ANY_ID, PCI_ANY_ID, from); } |