Commit 54181c13 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Bjorn Helgaas
Browse files

PCI: Rename retval to ret

Rename 'retval' to 'ret' in pci_assign_unassigned_bridge_resources().

Link: https://lore.kernel.org/r/20241216175632.4175-16-ilpo.jarvinen@linux.intel.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Tested-by: default avatarXiaochun Lee <lixc17@lenovo.com>
parent acba174d
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2255,11 +2255,10 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge)
	struct pci_bus *parent = bridge->subordinate;
	/* List of resources that want additional resources */
	LIST_HEAD(add_list);

	int tried_times = 0;
	LIST_HEAD(fail_head);
	struct pci_dev_resource *fail_res;
	int retval;
	int ret;

	while (1) {
		__pci_bus_size_bridges(parent, &add_list);
@@ -2316,9 +2315,9 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge)
		free_list(&fail_head);
	}

	retval = pci_reenable_device(bridge);
	if (retval)
		pci_err(bridge, "Error reenabling bridge (%d)\n", retval);
	ret = pci_reenable_device(bridge);
	if (ret)
		pci_err(bridge, "Error reenabling bridge (%d)\n", ret);
	pci_set_master(bridge);
}
EXPORT_SYMBOL_GPL(pci_assign_unassigned_bridge_resources);