[PATCH] lib: utils/irqchip: fix typo when checking for CPU node

Anup Patel anup at brainfault.org
Mon May 9 05:47:20 PDT 2022


On Mon, May 9, 2022 at 6:13 PM Jan Remeš <jan.remes at codasip.com> wrote:
>
> Fix typo in irqchip_imsic_update_hartid_table() when checking for CPU
> node.
>
> Signed-off-by: Jan Remes <jan.remes at codasip.com>

Looks good to me.

Reviewed-by: Anup Patel <anup at brainfault.org>

Regards,
Anup

> ---
>  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.35.1
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list