Skip to content

Commit

Permalink
ACPI: scan: Rename label in acpi_scan_init()
Browse files Browse the repository at this point in the history
Rename the "out" label in acpi_scan_init() to "unlock", which is
a better match for its purpose, and fix up its alignment.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Rafael J. Wysocki committed Jan 12, 2022
1 parent 681e718 commit c96f195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2585,11 +2585,11 @@ void __init acpi_scan_init(void)
* Enumerate devices in the ACPI namespace.
*/
if (acpi_bus_scan(ACPI_ROOT_OBJECT))
goto out;
goto unlock;

acpi_root = acpi_fetch_acpi_dev(ACPI_ROOT_OBJECT);
if (!acpi_root)
goto out;
goto unlock;

/* Fixed feature devices do not exist on HW-reduced platform */
if (!acpi_gbl_reduced_hardware)
Expand All @@ -2599,7 +2599,7 @@ void __init acpi_scan_init(void)

acpi_scan_initialized = true;

out:
unlock:
mutex_unlock(&acpi_scan_lock);
}

Expand Down

0 comments on commit c96f195

Please sign in to comment.