x86: acpi: Refactor XSDT handling in acpi_add_table()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 27 Feb 2020 14:00:51 +0000 (16:00 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 4 Apr 2020 14:08:44 +0000 (22:08 +0800)
commitddcccb2b2c1251ee9cd658c340d722a716d75a96
tree55b7e23ab6f63dd2c9718a341fade9dc52b9627a
parente0718b3ab754860bd47677e6b4fc5b70da42c4ab
x86: acpi: Refactor XSDT handling in acpi_add_table()

There is no need to have an assignment to NULL for XSDT pointer.
Therefore, no need to assign it when rsdt_address is not set.
Because of above changes we may decrease indentation level as well.

While here, drop unnecessary parentheses.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c