arm64: check return value of of_flat_dt_get_machine_name
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 16 May 2017 07:36:16 +0000 (15:36 +0800)
committerWill Deacon <will.deacon@arm.com>
Tue, 30 May 2017 10:07:42 +0000 (11:07 +0100)
commit690e95dd4d67be2eb905e1480b692c84e612a71a
treee2f9c808fee06835c52e2f19866e40e23087527d
parent3fde2999fac549024a56353966844ac7633b74ae
arm64: check return value of of_flat_dt_get_machine_name

It's useless to print machine name and setup arch-specific system
identifiers if of_flat_dt_get_machine_name() return NULL, especially
when ACPI-based boot.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/setup.c