Skip to content

Commit

Permalink
ACPICA: AcpiGetObjectInfo: optimize exit for mutex failure.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Jan 10, 2013
1 parent fb4e502 commit ef0b67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/acpica/nsxfname.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ acpi_get_object_info(acpi_handle handle,

status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE(status)) {
goto cleanup;
return (status);
}

node = acpi_ns_validate_handle(handle);
Expand Down

0 comments on commit ef0b67f

Please sign in to comment.