瀏覽代碼

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>
Brian Norris 8 年之前
父節點
當前提交
deb518f6ae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pci/host/pcie-rockchip.c

+ 1 - 1
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);