diff options
author | Brian Norris <briannorris@chromium.org> | 2017-03-09 18:46:14 -0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-03-23 17:24:34 -0500 |
commit | deb518f6ae4d5da22fb1e8d6c6a690253ffa700d (patch) | |
tree | bcf352fd3a4cf186a45fb5c3f62dcb9af02f3332 /drivers/pci/host | |
parent | 73edd2b180a18024605c599074596a9e22d745d6 (diff) | |
download | linux-deb518f6ae4d5da22fb1e8d6c6a690253ffa700d.tar.gz linux-deb518f6ae4d5da22fb1e8d6c6a690253ffa700d.tar.bz2 linux-deb518f6ae4d5da22fb1e8d6c6a690253ffa700d.zip |
PCI: rockchip: Make 'return 0' more obvious in probe()
There's no way to get here with 'err != 0'. Just return 0 to be more
obvious and prevent future changes from accidentally erroring out here
without going through the right error paths.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host')
-rw-r--r-- | drivers/pci/host/pcie-rockchip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 7f76ff6af0ba..b4dfe3bd15c3 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drivers/pci/host/pcie-rockchip.c @@ -1399,7 +1399,7 @@ static int rockchip_pcie_probe(struct platform_device *pdev) pcie_bus_configure_settings(child); pci_bus_add_devices(bus); - return err; + return 0; err_free_res: pci_free_resource_list(&res); |