summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson64
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-03-10 07:50:10 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-03-14 15:07:49 +0100
commit89fa1268932420c64155bb4de9a9252a8c9e475d (patch)
treef1ed9854c8a59ce3fb1ecbe51f5f1c68dcc00bc9 /arch/mips/loongson64
parentMIPS: pgalloc: fix memory leak caused by pgd_free() (diff)
downloadlinux-89fa1268932420c64155bb4de9a9252a8c9e475d.tar.xz
linux-89fa1268932420c64155bb4de9a9252a8c9e475d.zip
MIPS: Remove redundant check in device_tree_init()
In device_tree_init(), unflatten_and_copy_device_tree() checks initial_boot_params, so remove the redundant check. drivers/of/fdt.c void __init unflatten_and_copy_device_tree(void) { int size; void *dt; if (!initial_boot_params) { pr_warn("No valid device tree found, continuing without\n"); return; } ... } Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/loongson64')
-rw-r--r--arch/mips/loongson64/setup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/mips/loongson64/setup.c b/arch/mips/loongson64/setup.c
index 6fe3ffffcaa6..1973eb091e10 100644
--- a/arch/mips/loongson64/setup.c
+++ b/arch/mips/loongson64/setup.c
@@ -39,8 +39,5 @@ void __init plat_mem_setup(void)
void __init device_tree_init(void)
{
- if (!initial_boot_params)
- return;
-
unflatten_and_copy_device_tree();
}