lib: utils: fdt_fixup: Fix compile error
authorXiang W <wxjstz@126.com>
Tue, 21 Feb 2023 05:07:07 +0000 (13:07 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Feb 2023 05:19:09 +0000 (10:49 +0530)
commit6861ee996ce5b1f2017ca7a9b0342f9cd9462917
tree15fb1658792c40646d3b579abd7e7b64629318cd
parent99d09b601eb3809a4cc2aa409da34bc4fe32f67f
lib: utils: fdt_fixup: Fix compile error

When building with GCC-10 or older versions, it throws the following
error:

 CC-DEP    platform/generic/lib/utils/fdt/fdt_fixup.dep
 CC        platform/generic/lib/utils/fdt/fdt_fixup.o
lib/utils/fdt/fdt_fixup.c: In function 'fdt_reserved_memory_fixup':
lib/utils/fdt/fdt_fixup.c:376:2: error: label at end of compound statement
  376 |  next_entry:
      |  ^~~~~~~~~~

Remove the goto statement.

Resolves: https://github.com/riscv-software-src/opensbi/issues/288

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
lib/utils/fdt/fdt_fixup.c