summaryrefslogtreecommitdiff
path: root/source/components/tables
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-10-19 18:47:57 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-10-19 18:47:57 +0000
commit31aa864e8c068201d58aad3a8f82ddb51df11015 (patch)
tree5e268c18ae0fa3ec73e13e2af60a3be57d8393ec /source/components/tables
parentebef5c959a0ea58fa05c4a5a80bb93104780bf87 (diff)
Notes
Diffstat (limited to 'source/components/tables')
-rw-r--r--source/components/tables/tbfadt.c1
-rw-r--r--source/components/tables/tbfind.c2
-rw-r--r--source/components/tables/tbinstal.c3
-rw-r--r--source/components/tables/tbutils.c2
-rw-r--r--source/components/tables/tbxface.c12
-rw-r--r--source/components/tables/tbxfload.c2
-rw-r--r--source/components/tables/tbxfroot.c5
7 files changed, 12 insertions, 15 deletions
diff --git a/source/components/tables/tbfadt.c b/source/components/tables/tbfadt.c
index 0bc6f28ece2b..f9a6d8e5881c 100644
--- a/source/components/tables/tbfadt.c
+++ b/source/components/tables/tbfadt.c
@@ -724,4 +724,3 @@ AcpiTbSetupFadtRegisters (
}
}
}
-
diff --git a/source/components/tables/tbfind.c b/source/components/tables/tbfind.c
index d7e2440b32ac..ab3ec1a64ce1 100644
--- a/source/components/tables/tbfind.c
+++ b/source/components/tables/tbfind.c
@@ -86,7 +86,7 @@ AcpiTbFindTable (
/* Normalize the input strings */
ACPI_MEMSET (&Header, 0, sizeof (ACPI_TABLE_HEADER));
- ACPI_STRNCPY (Header.Signature, Signature, ACPI_NAME_SIZE);
+ ACPI_MOVE_NAME (Header.Signature, Signature);
ACPI_STRNCPY (Header.OemId, OemId, ACPI_OEM_ID_SIZE);
ACPI_STRNCPY (Header.OemTableId, OemTableId, ACPI_OEM_TABLE_ID_SIZE);
diff --git a/source/components/tables/tbinstal.c b/source/components/tables/tbinstal.c
index 06264404ce9d..5071fc645630 100644
--- a/source/components/tables/tbinstal.c
+++ b/source/components/tables/tbinstal.c
@@ -577,6 +577,8 @@ AcpiTbTerminate (
ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "ACPI Tables freed\n"));
(void) AcpiUtReleaseMutex (ACPI_MTX_TABLES);
+
+ return_VOID;
}
@@ -816,4 +818,3 @@ AcpiTbSetTableLoadedFlag (
(void) AcpiUtReleaseMutex (ACPI_MTX_TABLES);
}
-
diff --git a/source/components/tables/tbutils.c b/source/components/tables/tbutils.c
index c0a94562adc3..5dda467c582a 100644
--- a/source/components/tables/tbutils.c
+++ b/source/components/tables/tbutils.c
@@ -329,7 +329,7 @@ AcpiTbChecksum (
Sum = (UINT8) (Sum + *(Buffer++));
}
- return Sum;
+ return (Sum);
}
diff --git a/source/components/tables/tbxface.c b/source/components/tables/tbxface.c
index d2f31ea7b2c4..1224e31abc65 100644
--- a/source/components/tables/tbxface.c
+++ b/source/components/tables/tbxface.c
@@ -268,22 +268,23 @@ AcpiGetTableHeader (
sizeof (ACPI_TABLE_HEADER));
if (!Header)
{
- return AE_NO_MEMORY;
+ return (AE_NO_MEMORY);
}
- ACPI_MEMCPY (OutTableHeader, Header, sizeof(ACPI_TABLE_HEADER));
- AcpiOsUnmapMemory (Header, sizeof(ACPI_TABLE_HEADER));
+ ACPI_MEMCPY (OutTableHeader, Header,
+ sizeof (ACPI_TABLE_HEADER));
+ AcpiOsUnmapMemory (Header, sizeof (ACPI_TABLE_HEADER));
}
else
{
- return AE_NOT_FOUND;
+ return (AE_NOT_FOUND);
}
}
else
{
ACPI_MEMCPY (OutTableHeader,
AcpiGbl_RootTableList.Tables[i].Pointer,
- sizeof(ACPI_TABLE_HEADER));
+ sizeof (ACPI_TABLE_HEADER));
}
return (AE_OK);
@@ -522,4 +523,3 @@ Cleanup:
}
ACPI_EXPORT_SYMBOL (AcpiRemoveTableHandler)
-
diff --git a/source/components/tables/tbxfload.c b/source/components/tables/tbxfload.c
index 2883babc0e07..ecf87733b4a0 100644
--- a/source/components/tables/tbxfload.c
+++ b/source/components/tables/tbxfload.c
@@ -219,7 +219,7 @@ UnlockAndExit:
* DESCRIPTION: Dynamically load an ACPI table from the caller's buffer. Must
* be a valid ACPI table with a valid ACPI table header.
* Note1: Mainly intended to support hotplug addition of SSDTs.
- * Note2: Does not copy the incoming table. User is reponsible
+ * Note2: Does not copy the incoming table. User is responsible
* to ensure that the table is not deleted or unmapped.
*
******************************************************************************/
diff --git a/source/components/tables/tbxfroot.c b/source/components/tables/tbxfroot.c
index 604f4d072e10..5124d366fa65 100644
--- a/source/components/tables/tbxfroot.c
+++ b/source/components/tables/tbxfroot.c
@@ -79,8 +79,6 @@ static ACPI_STATUS
AcpiTbValidateRsdp (
ACPI_TABLE_RSDP *Rsdp)
{
- ACPI_FUNCTION_ENTRY ();
-
/*
* The signature and checksum must both be correct
@@ -124,7 +122,7 @@ AcpiTbValidateRsdp (
* RETURN: Status, RSDP physical address
*
* DESCRIPTION: Search lower 1Mbyte of memory for the root system descriptor
- * pointer structure. If it is found, set *RSDP to point to it.
+ * pointer structure. If it is found, set *RSDP to point to it.
*
* NOTE1: The RSDP must be either in the first 1K of the Extended
* BIOS Data Area or between E0000 and FFFFF (From ACPI Spec.)
@@ -296,4 +294,3 @@ AcpiTbScanMemoryForRsdp (
StartAddress));
return_PTR (NULL);
}
-