Commit 5582982d authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki

ACPICA: Remove indent divergences to reduce maintenance overhead.

The divergences in the ACPICA files makes it difficult to maintain linuxize
ACPICA table commits.  This patch reduces such divergences before applying
table manager commits so that human interventions of patch rebasing can be
reduced.
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
[rjw: Subject]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0745fb41
...@@ -75,6 +75,7 @@ acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc) ...@@ -75,6 +75,7 @@ acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc)
acpi_os_map_memory(table_desc->address, acpi_os_map_memory(table_desc->address,
table_desc->length); table_desc->length);
} }
if (!table_desc->pointer) { if (!table_desc->pointer) {
return_ACPI_STATUS(AE_NO_MEMORY); return_ACPI_STATUS(AE_NO_MEMORY);
} }
...@@ -459,10 +460,13 @@ acpi_tb_store_table(acpi_physical_address address, ...@@ -459,10 +460,13 @@ acpi_tb_store_table(acpi_physical_address address,
void acpi_tb_delete_table(struct acpi_table_desc *table_desc) void acpi_tb_delete_table(struct acpi_table_desc *table_desc)
{ {
/* Table must be mapped or allocated */ /* Table must be mapped or allocated */
if (!table_desc->pointer) { if (!table_desc->pointer) {
return; return;
} }
switch (table_desc->flags & ACPI_TABLE_ORIGIN_MASK) { switch (table_desc->flags & ACPI_TABLE_ORIGIN_MASK) {
case ACPI_TABLE_ORIGIN_MAPPED: case ACPI_TABLE_ORIGIN_MAPPED:
...@@ -657,7 +661,7 @@ acpi_status acpi_tb_release_owner_id(u32 table_index) ...@@ -657,7 +661,7 @@ acpi_status acpi_tb_release_owner_id(u32 table_index)
* *
******************************************************************************/ ******************************************************************************/
acpi_status acpi_tb_get_owner_id(u32 table_index, acpi_owner_id *owner_id) acpi_status acpi_tb_get_owner_id(u32 table_index, acpi_owner_id * owner_id)
{ {
acpi_status status = AE_BAD_PARAMETER; acpi_status status = AE_BAD_PARAMETER;
......
...@@ -582,7 +582,7 @@ acpi_status __init acpi_tb_parse_root_table(acpi_physical_address rsdp_address) ...@@ -582,7 +582,7 @@ acpi_status __init acpi_tb_parse_root_table(acpi_physical_address rsdp_address)
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
ACPI_WARNING((AE_INFO, ACPI_WARNING((AE_INFO,
"Truncating %u table entries!", "Truncating %u table entries!",
(unsigned) (table_count - (unsigned)(table_count -
(acpi_gbl_root_table_list. (acpi_gbl_root_table_list.
current_table_count - current_table_count -
2)))); 2))));
......
...@@ -390,7 +390,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_table) ...@@ -390,7 +390,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_table)
* *
******************************************************************************/ ******************************************************************************/
acpi_status acpi_status
acpi_get_table_by_index(u32 table_index, struct acpi_table_header **table) acpi_get_table_by_index(u32 table_index, struct acpi_table_header ** table)
{ {
acpi_status status; acpi_status status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment