kboot: Fix warning/bug introduced by ecb6c82e

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-11-16 21:09:12 +09:00
parent b9ec73b019
commit ecc80f4b32

View file

@ -204,7 +204,7 @@ static int dt_set_cpus(void)
bail("FDT: /cpus node not found in devtree\n"); bail("FDT: /cpus node not found in devtree\n");
int node, cpu = 0; int node, cpu = 0;
for (int node = fdt_first_subnode(dt, cpus); node >= 0;) { for (node = fdt_first_subnode(dt, cpus); node >= 0;) {
const char *name = fdt_get_name(dt, node, NULL); const char *name = fdt_get_name(dt, node, NULL);
if (strncmp(name, "cpu@", 4)) if (strncmp(name, "cpu@", 4))
goto next_node; goto next_node;