x86: acpi: Remove header length check when writing tables
authorBin Meng <bmeng.cn@gmail.com>
Wed, 11 May 2016 14:45:05 +0000 (07:45 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 23 May 2016 07:18:00 +0000 (15:18 +0800)
commit10fcabed8857d2c12a5806c68cf884802f975aae
treeb21c9d63af195b844048b43986d2292f72dca7cb
parent17b63c80bffbaad344a4f6dd2363830e13ed8c03
x86: acpi: Remove header length check when writing tables

Before moving 'current' pointer during ACPI table writing, we always
check the table length to see if it is larger than the table header.
Since our purpose is to generate valid tables, the check logic is
always true, which can be avoided.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/acpi_table.c