提交 2af31f41 编写于 作者: R Rafael J. Wysocki 提交者: Bjorn Helgaas

PCI: pciehp: Drop pointless label from pciehp_probe()

The err_out_none label in pciehp_probe() only leads to a return statement,
so use return statements instead of jumps to it and drop it.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 e705c295
...@@ -256,13 +256,13 @@ static int pciehp_probe(struct pcie_device *dev) ...@@ -256,13 +256,13 @@ static int pciehp_probe(struct pcie_device *dev)
/* Can happen if we run out of bus numbers during probe */ /* Can happen if we run out of bus numbers during probe */
dev_err(&dev->device, dev_err(&dev->device,
"Hotplug bridge without secondary bus, ignoring\n"); "Hotplug bridge without secondary bus, ignoring\n");
goto err_out_none; return -ENODEV;
} }
ctrl = pcie_init(dev); ctrl = pcie_init(dev);
if (!ctrl) { if (!ctrl) {
dev_err(&dev->device, "Controller initialization failed\n"); dev_err(&dev->device, "Controller initialization failed\n");
goto err_out_none; return -ENODEV;
} }
set_service_data(dev, ctrl); set_service_data(dev, ctrl);
...@@ -302,7 +302,6 @@ static int pciehp_probe(struct pcie_device *dev) ...@@ -302,7 +302,6 @@ static int pciehp_probe(struct pcie_device *dev)
cleanup_slot(ctrl); cleanup_slot(ctrl);
err_out_release_ctlr: err_out_release_ctlr:
pciehp_release_ctrl(ctrl); pciehp_release_ctrl(ctrl);
err_out_none:
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册