Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Rafael J. Wysocki and committed by
Bjorn Helgaas
2af31f41 e705c295

+2 -3
+2 -3
drivers/pci/hotplug/pciehp_core.c
··· 256 256 /* Can happen if we run out of bus numbers during probe */ 257 257 dev_err(&dev->device, 258 258 "Hotplug bridge without secondary bus, ignoring\n"); 259 - goto err_out_none; 259 + return -ENODEV; 260 260 } 261 261 262 262 ctrl = pcie_init(dev); 263 263 if (!ctrl) { 264 264 dev_err(&dev->device, "Controller initialization failed\n"); 265 - goto err_out_none; 265 + return -ENODEV; 266 266 } 267 267 set_service_data(dev, ctrl); 268 268 ··· 302 302 cleanup_slot(ctrl); 303 303 err_out_release_ctlr: 304 304 pciehp_release_ctrl(ctrl); 305 - err_out_none: 306 305 return -ENODEV; 307 306 } 308 307