From ecc80f4b32ae5c458f6b126cf016012ad69c7fae Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Tue, 16 Nov 2021 21:09:12 +0900 Subject: [PATCH] kboot: Fix warning/bug introduced by ecb6c82e Signed-off-by: Hector Martin --- src/kboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kboot.c b/src/kboot.c index 6b533a4c..ea2ba3aa 100644 --- a/src/kboot.c +++ b/src/kboot.c @@ -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;