mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-13 02:47:07 +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");
|
||||
|
||||
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);
|
||||
if (strncmp(name, "cpu@", 4))
|
||||
goto next_node;
|
||||
|
|
Loading…
Reference in a new issue