[PATCH] fixup! bootm: retire bootm_has_initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CI noticed correctly that ret is used uninitialized here.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux