]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: tables: Remove the duplicated checks for acpi_parse_entries_array()
authorHanjun Guo <guohanjun@huawei.com>
Tue, 21 Jul 2020 09:59:04 +0000 (17:59 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jul 2020 13:19:12 +0000 (15:19 +0200)
commit1ca5f868f4d82342c01d9beae46bb00ffb39cd2c
tree26eb9fb154811fda0277a46bebdef181413f1bd5
parentb21d3773b04d04c102a85f1ef94c76e1ece50d49
ACPI: tables: Remove the duplicated checks for acpi_parse_entries_array()

acpi_disabled, pointer id and table_header are checked in
acpi_table_parse_entries_array(), and acpi_parse_entries_array() is
only called by acpi_table_parse_entries_array(), so those checks in
acpi_parse_entries_array() are duplicate.

Remove those duplicated checks and move the table_size check to
acpi_table_parse_entries_array() as well.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/tables.c