iASL: Fix a couple of warnings for PHAT table (on MSVC).

Add a couple of casts, and initialize Status to AE_OK.
This commit is contained in:
Robert Moore 2021-03-12 09:40:14 -08:00
parent 2197e354fb
commit 87a254a780
1 changed files with 3 additions and 3 deletions

View File

@ -965,7 +965,7 @@ ACPI_STATUS
DtCompilePhat (
void **List)
{
ACPI_STATUS Status;
ACPI_STATUS Status = AE_OK;
DT_SUBTABLE *Subtable;
DT_SUBTABLE *ParentTable;
DT_FIELD **PFieldList = (DT_FIELD **) List;
@ -1058,7 +1058,7 @@ DtCompilePhat (
ParentTable = DtPeekSubtable ();
DtInsertSubtable (ParentTable, Subtable);
PhatHeader->Length += Subtable->Length;
PhatHeader->Length += (UINT16) Subtable->Length;
/* Compile vendor specific data */
@ -1070,7 +1070,7 @@ DtCompilePhat (
ParentTable = DtPeekSubtable ();
DtInsertSubtable (ParentTable, Subtable);
PhatHeader->Length += Subtable->Length;
PhatHeader->Length += (UINT16) Subtable->Length;
break;