From: Bob Moore Date: Wed, 19 Dec 2012 05:38:36 +0000 (+0000) Subject: ACPICA: AcpiGetObjectInfo: optimize exit for mutex failure. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ef0b67fe2db6aad8b604f9f09e1452f421a7b124;p=linux-beck.git 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 Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- 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);