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 коммит произвёл Rafael J. Wysocki
Родитель fb4e50269c
Коммит ef0b67fe2d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);