mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-27 00:40:17 +00:00
kboot: Fix warning/bug introduced by ecb6c82e
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
b9ec73b019
commit
ecc80f4b32
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue