diff options
author | Bob Moore <robert.moore@intel.com> | 2012-12-19 00:38:36 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:19 -0500 |
commit | ef0b67fe2db6aad8b604f9f09e1452f421a7b124 (patch) | |
tree | 47831bce0dbd7845545dc2d148738b9ccf7a0dcc | |
parent | fb4e50269c73a09dd89b40d6965bb9f1ee93dd1e (diff) |
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>
-rw-r--r-- | drivers/acpi/acpica/nsxfname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nsxfname.c b/drivers/acpi/acpica/nsxfname.c index 520bab471dbf..a8deae82b24b 100644 --- a/drivers/acpi/acpica/nsxfname.c +++ b/drivers/acpi/acpica/nsxfname.c | |||
@@ -290,7 +290,7 @@ acpi_get_object_info(acpi_handle handle, | |||
290 | 290 | ||
291 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | 291 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); |
292 | if (ACPI_FAILURE(status)) { | 292 | if (ACPI_FAILURE(status)) { |
293 | goto cleanup; | 293 | return (status); |
294 | } | 294 | } |
295 | 295 | ||
296 | node = acpi_ns_validate_handle(handle); | 296 | node = acpi_ns_validate_handle(handle); |