diff options
author | Jon Derrick <jonathan.derrick@intel.com> | 2016-04-08 11:35:51 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-04-08 15:21:28 -0500 |
commit | 88a97da1eab7587036d8bc937d6bc874b8210df1 (patch) | |
tree | 8f473d01279a5be325f9561faabe323f9a39af9a /drivers/pci/pcie/portdrv_core.c | |
parent | PCI/ACPI: Allow all PCIe services on non-ACPI host bridges (diff) | |
download | linux-dev-88a97da1eab7587036d8bc937d6bc874b8210df1.tar.xz linux-dev-88a97da1eab7587036d8bc937d6bc874b8210df1.zip |
PCI: Remove return values from pcie_port_platform_notify() and relatives
Now that pcie_port_acpi_setup() always returns 0, make it and its callers
void functions and stop checking the return values.
[bhelgaas: changelog]
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie/portdrv_core.c')
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index 88122dc2e1b1..de7a85bc8016 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c @@ -256,7 +256,6 @@ static int get_port_device_capability(struct pci_dev *dev) int services = 0; u32 reg32; int cap_mask = 0; - int err; if (pcie_ports_disabled) return 0; @@ -266,11 +265,8 @@ static int get_port_device_capability(struct pci_dev *dev) if (pci_aer_available()) cap_mask |= PCIE_PORT_SERVICE_AER; - if (pcie_ports_auto) { - err = pcie_port_platform_notify(dev, &cap_mask); - if (err) - return 0; - } + if (pcie_ports_auto) + pcie_port_platform_notify(dev, &cap_mask); /* Hot-Plug Capable */ if ((cap_mask & PCIE_PORT_SERVICE_HP) && |