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

ACPI: scan: Adjust white space in acpi_device_add()



Add empty lines in some places in acpi_device_add() to help
readability and drop leading spaces before the labels in there.

No functional impact.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent c1013ff7
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -694,10 +694,12 @@ int acpi_device_add(struct acpi_device *device,

	if (device->wakeup.flags.valid)
		list_add_tail(&device->wakeup_list, &acpi_wakeup_device_list);

	mutex_unlock(&acpi_device_lock);

	if (device->parent)
		device->dev.parent = &device->parent->dev;

	device->dev.bus = &acpi_bus_type;
	device->dev.release = release;
	result = device_add(&device->dev);
@@ -715,14 +717,17 @@ int acpi_device_add(struct acpi_device *device,

err:
	mutex_lock(&acpi_device_lock);

	if (device->parent)
		list_del(&device->node);

	list_del(&device->wakeup_list);

err_unlock:
	mutex_unlock(&acpi_device_lock);

	acpi_detach_data(device->handle, acpi_scan_drop_device);

	return result;
}