diff options
Diffstat (limited to 'sys/contrib/dev/acpica/tbinstal.c')
-rw-r--r-- | sys/contrib/dev/acpica/tbinstal.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/contrib/dev/acpica/tbinstal.c b/sys/contrib/dev/acpica/tbinstal.c index 64c9e99..338c265 100644 --- a/sys/contrib/dev/acpica/tbinstal.c +++ b/sys/contrib/dev/acpica/tbinstal.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: tbinstal - ACPI table installation and removal - * $Revision: 41 $ + * $Revision: 42 $ * *****************************************************************************/ @@ -155,7 +155,6 @@ AcpiTbInstallTable ( * Check the table signature and make sure it is recognized * Also checks the header checksum */ - Status = AcpiTbRecognizeTable (TablePtr, TableInfo); if (ACPI_FAILURE (Status)) { @@ -225,7 +224,6 @@ AcpiTbRecognizeTable ( * Search for a signature match among the known table types * Start at index one -> Skip the RSDP */ - Status = AE_SUPPORT; for (i = 1; i < NUM_ACPI_TABLES; i++) { @@ -237,7 +235,6 @@ AcpiTbRecognizeTable ( * Found a signature match, get the pertinent info from the * TableData structure */ - TableType = i; Status = AcpiGbl_AcpiTableData[i].Status; @@ -257,7 +254,6 @@ AcpiTbRecognizeTable ( * Validate checksum for _most_ tables, * even the ones whose signature we don't recognize */ - if (TableType != ACPI_TABLE_FACS) { /* But don't abort if the checksum is wrong */ @@ -270,7 +266,6 @@ AcpiTbRecognizeTable ( * An AE_SUPPORT means that the table was not recognized. * We basically ignore this; just print a debug message */ - if (Status == AE_SUPPORT) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, @@ -309,7 +304,6 @@ AcpiTbInitTableDescriptor ( /* * Install the table into the global data structure */ - ListHead = &AcpiGbl_AcpiTables[TableType]; TableDesc = ListHead; @@ -319,14 +313,12 @@ AcpiTbInitTableDescriptor ( * includes most ACPI tables such as the DSDT. 2) Multiple instances of * the table are allowed. This includes SSDT and PSDTs. */ - if (IS_SINGLE_TABLE (AcpiGbl_AcpiTableData[TableType].Flags)) { /* * Only one table allowed, and a table has alread been installed * at this location, so return an error. */ - if (ListHead->Pointer) { return_ACPI_STATUS (AE_EXIST); @@ -342,7 +334,6 @@ AcpiTbInitTableDescriptor ( * Multiple tables allowed for this table type, we must link * the new table in to the list of tables of this type. */ - if (ListHead->Pointer) { TableDesc = ACPI_MEM_CALLOCATE (sizeof (ACPI_TABLE_DESC)); @@ -390,7 +381,6 @@ AcpiTbInitTableDescriptor ( * Set the appropriate global pointer (if there is one) to point to the * newly installed table */ - if (AcpiGbl_AcpiTableData[TableType].GlobalPtr) { *(AcpiGbl_AcpiTableData[TableType].GlobalPtr) = TableInfo->Pointer; @@ -428,7 +418,6 @@ AcpiTbDeleteAcpiTables (void) * Free memory allocated for ACPI tables * Memory can either be mapped or allocated */ - for (Type = 0; Type < NUM_ACPI_TABLES; Type++) { AcpiTbDeleteAcpiTable (Type); @@ -540,7 +529,6 @@ AcpiTbFreeAcpiTablesOfType ( * Walk the entire list, deleting both the allocated tables * and the table descriptors */ - for (i = 0; i < Count; i++) { TableDesc = AcpiTbUninstallTable (TableDesc); |