summaryrefslogtreecommitdiff
path: root/source/compiler/dtcompile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/dtcompile.c')
-rw-r--r--source/compiler/dtcompile.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/compiler/dtcompile.c b/source/compiler/dtcompile.c
index 95fcb2d460d8..09cb3e6c4a2e 100644
--- a/source/compiler/dtcompile.c
+++ b/source/compiler/dtcompile.c
@@ -240,8 +240,7 @@ DtDoCompile (
DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL,
"Input file does not appear to be an ASL or data table source file");
- Status = AE_ERROR;
- goto CleanupAndExit;
+ return (AE_ERROR);
}
Event = UtBeginEvent ("Compile parse tree");
@@ -259,7 +258,7 @@ DtDoCompile (
DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL,
"Could not compile input file");
- goto CleanupAndExit;
+ return (Status);
}
/* Create/open the binary output file */
@@ -268,7 +267,7 @@ DtDoCompile (
Status = FlOpenAmlOutputFile (AslGbl_OutputFilenamePrefix);
if (ACPI_FAILURE (Status))
{
- goto CleanupAndExit;
+ return (Status);
}
/* Write the binary, then the optional hex file */
@@ -277,10 +276,6 @@ DtDoCompile (
HxDoHexOutput ();
DtWriteTableToListing ();
-CleanupAndExit:
-
- AcpiUtDeleteCaches ();
- CmCleanupAndExit ();
return (Status);
}