]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Remove redundant check in device_tree_init()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 10 Mar 2022 06:50:10 +0000 (14:50 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 14 Mar 2022 14:07:49 +0000 (15:07 +0100)
commitf60c15f88c083835c1720d638d90cb6a93e4bb2a
treef1ed9854c8a59ce3fb1ecbe51f5f1c68dcc00bc9
parenta5a0945833e4344a34a7ce9484e07ef70037774a
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>
arch/mips/loongson64/setup.c
arch/mips/pic32/pic32mzda/init.c