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:
parent
fb4e50269c
commit
ef0b67fe2d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue