From 851c14d455207f304ab9fa6fe4d399b7f8a950fe Mon Sep 17 00:00:00 2001 From: Jan Remes Date: Fri, 13 May 2022 09:58:54 +0530 Subject: [PATCH] lib: utils/irqchip: fix typo when checking for CPU node Fix typo in irqchip_imsic_update_hartid_table() when checking for CPU node. Signed-off-by: Jan Remes Reviewed-by: Anup Patel Reviewed-by: Bin Meng --- lib/utils/irqchip/fdt_irqchip_imsic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/irqchip/fdt_irqchip_imsic.c b/lib/utils/irqchip/fdt_irqchip_imsic.c index b6962be..6020ac0 100644 --- a/lib/utils/irqchip/fdt_irqchip_imsic.c +++ b/lib/utils/irqchip/fdt_irqchip_imsic.c @@ -42,7 +42,7 @@ static int irqchip_imsic_update_hartid_table(void *fdt, int nodeoff, continue; cpu_offset = fdt_parent_offset(fdt, cpu_intc_offset); - if (cpu_intc_offset < 0) + if (cpu_offset < 0) continue; err = fdt_parse_hart_id(fdt, cpu_offset, &hartid); -- 2.7.4