diff options
author | Myron Stowe <myron.stowe@redhat.com> | 2014-11-11 10:04:50 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-11-19 17:07:43 -0500 |
commit | 26ff46c6f23bb1497aaa1364a5c73a109493b653 (patch) | |
tree | 27c28c889186f055f298bcf440cd733cf19eb741 /drivers/pci/pci.c | |
parent | 7e79c5f8cad2ac1dc26c03e1aa16216391a04dad (diff) |
PCI: Remove fixed parameter in pci_iov_resource_bar()
pci_iov_resource_bar() always sets its 'pci_bar_type' parameter to
'pci_bar_unknown'. Drop the parameter and just use 'pci_bar_unknown'
directly in the callers.
No functional change intended.
Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Chris Wright <chrisw@sous-sol.org>
CC: Yu Zhao <yuzhao@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 625a4ace10b4..7bf246595c63 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -4180,7 +4180,8 @@ int pci_resource_bar(struct pci_dev *dev, int resno, enum pci_bar_type *type) | |||
4180 | return dev->rom_base_reg; | 4180 | return dev->rom_base_reg; |
4181 | } else if (resno < PCI_BRIDGE_RESOURCES) { | 4181 | } else if (resno < PCI_BRIDGE_RESOURCES) { |
4182 | /* device specific resource */ | 4182 | /* device specific resource */ |
4183 | reg = pci_iov_resource_bar(dev, resno, type); | 4183 | *type = pci_bar_unknown; |
4184 | reg = pci_iov_resource_bar(dev, resno); | ||
4184 | if (reg) | 4185 | if (reg) |
4185 | return reg; | 4186 | return reg; |
4186 | } | 4187 | } |