]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: rockchip: Make 'return 0' more obvious in probe()
authorBrian Norris <briannorris@chromium.org>
Fri, 10 Mar 2017 02:46:14 +0000 (18:46 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Mar 2017 22:24:34 +0000 (17:24 -0500)
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>
drivers/pci/host/pcie-rockchip.c

index 7f76ff6af0bac13aa413d68725ac4030fe839e14..b4dfe3bd15c3f6af8ae7694c9c6e37c79dbef5e7 100644 (file)
@@ -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);