diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2018-03-14 19:17:38 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2018-03-14 19:17:38 +0000 |
| commit | e44d3d8ceb12ae786d331468fe4acf41a4af5424 (patch) | |
| tree | a0c9c4018920a4690d41c0de4de76527c5f4f090 /source/components/parser/psobject.c | |
| parent | 04f27355c01cb894338c3382792c0c2b75c86239 (diff) | |
Notes
Diffstat (limited to 'source/components/parser/psobject.c')
| -rw-r--r-- | source/components/parser/psobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/components/parser/psobject.c b/source/components/parser/psobject.c index b07b99f6a121..63e2b3b1ab8a 100644 --- a/source/components/parser/psobject.c +++ b/source/components/parser/psobject.c @@ -182,7 +182,7 @@ static ACPI_STATUS AcpiPsGetAmlOpcode ( ACPI_WALK_STATE *WalkState) { - UINT32 AmlOffset; + ACPI_ERROR_ONLY (UINT32 AmlOffset); ACPI_FUNCTION_TRACE_PTR (PsGetAmlOpcode, WalkState); @@ -217,8 +217,8 @@ AcpiPsGetAmlOpcode ( if (WalkState->PassNumber == 2) { - AmlOffset = (UINT32) ACPI_PTR_DIFF (WalkState->Aml, - WalkState->ParserState.AmlStart); + ACPI_ERROR_ONLY(AmlOffset = (UINT32) ACPI_PTR_DIFF (WalkState->Aml, + WalkState->ParserState.AmlStart)); ACPI_ERROR ((AE_INFO, "Unknown opcode 0x%.2X at table offset 0x%.4X, ignoring", |
