diff options
author | Bob Moore <robert.moore@intel.com> | 2012-12-19 06:38:36 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 12:36:19 +0100 |
commit | ef0b67fe2db6aad8b604f9f09e1452f421a7b124 (patch) | |
tree | 47831bce0dbd7845545dc2d148738b9ccf7a0dcc /drivers | |
parent | ACPICA: Resource Manager: update template walking with ACPI_NEXT_RESOURCE. (diff) | |
download | linux-ef0b67fe2db6aad8b604f9f09e1452f421a7b124.tar.xz linux-ef0b67fe2db6aad8b604f9f09e1452f421a7b124.zip |
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>
Diffstat (limited to 'drivers')
-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, status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); if (ACPI_FAILURE(status)) { - goto cleanup; + return (status); } node = acpi_ns_validate_handle(handle); |