Commit 4a56fd23 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/pci/search.c

parent 6432c88f
...@@ -55,9 +55,9 @@ pci_find_bus(unsigned char busnr) ...@@ -55,9 +55,9 @@ pci_find_bus(unsigned char busnr)
struct pci_dev * struct pci_dev *
pci_find_slot(unsigned int bus, unsigned int devfn) pci_find_slot(unsigned int bus, unsigned int devfn)
{ {
struct pci_dev *dev; struct pci_dev *dev = NULL;
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
if (dev->bus->number == bus && dev->devfn == devfn) if (dev->bus->number == bus && dev->devfn == devfn)
return dev; return dev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment