ACPICA: AcpiGetObjectInfo: optimize exit for mutex failure.

No need for a goto to the bottom of the function, simply return
the status code immediately.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Bob Moore 2012-12-19 05:38:36 +00:00 committed by Rafael J. Wysocki
parent fb4e50269c
commit ef0b67fe2d
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ acpi_get_object_info(acpi_handle handle,
status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
goto cleanup; return (status);
} }
node = acpi_ns_validate_handle(handle); node = acpi_ns_validate_handle(handle);