Skip to content

Commit 89fa126

Browse files
seehearfeeltsbogend
authored andcommitted
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>
1 parent 2bc5bab commit 89fa126

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

arch/mips/loongson64/setup.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,5 @@ void __init plat_mem_setup(void)
3939

4040
void __init device_tree_init(void)
4141
{
42-
if (!initial_boot_params)
43-
return;
44-
4542
unflatten_and_copy_device_tree();
4643
}

arch/mips/pic32/pic32mzda/init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ void __init prom_init(void)
8080

8181
void __init device_tree_init(void)
8282
{
83-
if (!initial_boot_params)
84-
return;
85-
8683
unflatten_and_copy_device_tree();
8784
}
8885

0 commit comments

Comments
 (0)