Commit 89fa1268 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Thomas Bogendoerfer

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: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 2bc5bab9
...@@ -39,8 +39,5 @@ void __init plat_mem_setup(void) ...@@ -39,8 +39,5 @@ void __init plat_mem_setup(void)
void __init device_tree_init(void) void __init device_tree_init(void)
{ {
if (!initial_boot_params)
return;
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
} }
...@@ -80,9 +80,6 @@ void __init prom_init(void) ...@@ -80,9 +80,6 @@ void __init prom_init(void)
void __init device_tree_init(void) void __init device_tree_init(void)
{ {
if (!initial_boot_params)
return;
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment