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

Commit a649dbfe authored by Jiang Liu's avatar Jiang Liu Committed by Bjorn Helgaas
Browse files

ia64/PCI: Clean up pci_scan_root_bus() usage



pci_scan_root_bus() already set bus->sysdata, so no need to explicitly
set it again in function sn_pci_controller_fixup().

Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
parent 8b1fce04
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -326,16 +326,7 @@ sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
	bus = pci_scan_root_bus(NULL, busnum, &pci_root_ops, controller,
				&resources);
 	if (bus == NULL)
 		goto error_return; /* error, or bus already scanned */

	bus->sysdata = controller;

	return;

error_return:

		kfree(controller);
	return;
}

/*