summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2012-11-06 08:20:36 -0800
committerRobert Moore <Robert.Moore@intel.com>2012-11-06 08:20:36 -0800
commit568c54255b4e553356f8cc65ba2d4bbd41505b0d (patch)
tree8a83d4cc37f2e7a88a4ec300e7cdfc9099a0cdf6
parentc181ce2d1f7a27d12a9fe9c7680d7a77a849ccd7 (diff)
downloadacpica-568c54255b4e553356f8cc65ba2d4bbd41505b0d.tar.gz
AcpiGetObjectInfo: optimize exit for mutex failure.
No need for a goto to the bottom of the function, simply return the status code immediately.
-rw-r--r--source/components/namespace/nsxfname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/components/namespace/nsxfname.c b/source/components/namespace/nsxfname.c
index 1364acca8..da3b955e6 100644
--- a/source/components/namespace/nsxfname.c
+++ b/source/components/namespace/nsxfname.c
@@ -397,7 +397,7 @@ AcpiGetObjectInfo (
Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE (Status))
{
- goto Cleanup;
+ return (Status);
}
Node = AcpiNsValidateHandle (Handle);