mirror of
https://github.com/acpica/acpica/
synced 2025-02-23 08:54:16 +03:00
iASL: Remove extraneous error message if no parse tree created.
If early errors happen during the parsing stage, a parse tree may not be created. An "internal" error was emitted. Add a check for actual errors so that the internal error is only emitted if no other errors were generated during the parse.
This commit is contained in:
parent
e18caf1881
commit
4817fab2d8
@ -559,8 +559,17 @@ CmDoCompile (
|
||||
|
||||
if (!RootNode)
|
||||
{
|
||||
AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL,
|
||||
NULL, "- Could not resolve parse tree root node");
|
||||
/*
|
||||
* If there are no errors, then we have some sort of
|
||||
* internal problem.
|
||||
*/
|
||||
Status = AslCheckForErrorExit ();
|
||||
if (Status == AE_OK)
|
||||
{
|
||||
AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL,
|
||||
NULL, "- Could not resolve parse tree root node");
|
||||
}
|
||||
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
|
@ -208,6 +208,11 @@ ACPI_STATUS
|
||||
AslDoOneFile (
|
||||
char *Filename);
|
||||
|
||||
ACPI_STATUS
|
||||
AslCheckForErrorExit (
|
||||
void);
|
||||
|
||||
|
||||
/*
|
||||
* aslcompile - compile mainline
|
||||
*/
|
||||
|
@ -139,10 +139,6 @@ static UINT8
|
||||
AslDetectSourceFileType (
|
||||
ASL_FILE_INFO *Info);
|
||||
|
||||
static ACPI_STATUS
|
||||
AslCheckForErrorExit (
|
||||
void);
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
@ -630,7 +626,7 @@ AslDoOnePathname (
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
static ACPI_STATUS
|
||||
ACPI_STATUS
|
||||
AslCheckForErrorExit (
|
||||
void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user