]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPICA: AcpiGetObjectInfo: optimize exit for mutex failure.
authorBob Moore <robert.moore@intel.com>
Wed, 19 Dec 2012 05:38:36 +0000 (05:38 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Jan 2013 11:36:19 +0000 (12:36 +0100)
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>
drivers/acpi/acpica/nsxfname.c

index 520bab471dbf663ae9d6cc0f05217d3d70642548..a8deae82b24b9a56eeb02b816e65c785f2949543 100644 (file)
@@ -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);