
26 Jul
2025
26 Jul
'25
8:53 a.m.
Since 'select' is already assigned in the declarations for this function, there is no need to do it again. Drop the duplicate assignment. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/bootm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/boot/bootm.c b/boot/bootm.c index 0e15cdd0015..02bc81eb9e5 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -531,9 +531,6 @@ int bootm_find_images(ulong img_addr, const char *conf_ramdisk, } } - if (conf_ramdisk) - select = conf_ramdisk; - /* find ramdisk */ ret = boot_get_ramdisk(select, &images, IH_INITRD_ARCH, &images.rd_start, &images.rd_end); -- 2.43.0