Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit deb518f6 authored by Brian Norris's avatar Brian Norris Committed by Bjorn Helgaas
Browse files

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: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 73edd2b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);