Commit b862e66a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI: scan: Clean up after recent changes



Use LIST_HEAD() for initializing an on-stack list head in two places and
remove an empty code line added by mistake.

No intentional functional impact.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarMario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/12825056.O9o76ZdvQC@rafael.j.wysocki
parent 57c31e6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
	}

	if (adev->device_type == ACPI_BUS_TYPE_DEVICE && !adev->pnp.type.backlight) {
		struct list_head resource_list = LIST_HEAD_INIT(resource_list);
		LIST_HEAD(resource_list);

		count = acpi_dev_get_resources(adev, &resource_list, NULL, NULL);
		if (count < 0)
+1 −2
Original line number Diff line number Diff line
@@ -2594,8 +2594,8 @@ static void acpi_scan_postponed(void)

static void acpi_scan_claim_resources(struct acpi_device *adev)
{
	struct list_head resource_list = LIST_HEAD_INIT(resource_list);
	struct resource_entry *rentry;
	LIST_HEAD(resource_list);
	unsigned int count = 0;
	const char *regionid;

@@ -2652,7 +2652,6 @@ static void acpi_scan_claim_resources(struct acpi_device *adev)
	acpi_dev_free_resource_list(&resource_list);
}


static int __init acpi_reserve_motherboard_resources(void)
{
	struct acpi_scan_system_dev *sd, *tmp;