[PATCH] fixup! bootm: retire bootm_has_initrd
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Feb 14 12:02:08 PST 2025
CI noticed correctly that ret is used uninitialized here.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/kvx/lib/bootm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/kvx/lib/bootm.c b/arch/kvx/lib/bootm.c
index 6c35b68f3d5d..42c15ff27351 100644
--- a/arch/kvx/lib/bootm.c
+++ b/arch/kvx/lib/bootm.c
@@ -70,7 +70,7 @@ static int do_boot_elf(struct image_data *data, struct elf_image *elf)
initrd_res = bootm_load_initrd(data, initrd_address);
if (IS_ERR(initrd_res)) {
printf("Failed to load initrd\n");
- return ret;
+ return PTR_ERR(initrd_res);
} else if (initrd_res) {
printf("Loading initrd at 0x%lx\n", initrd_address);
if (data->initrd_address == UIMAGE_INVALID_ADDRESS) {
--
2.39.5
More information about the barebox
mailing list