[PATCH] x86: boot: fix unreachable else branch in boot_prep_linux

Bin Meng bmeng.cn at gmail.com
Wed Nov 12 13:46:47 CET 2025


On Thu, Sep 11, 2025 at 9:35 PM Guillaume Ranquet
<ranquet.guillaume at gmail.com> wrote:
>
> The else if branch uses the is_zimage boolean which is initialized to 0
> and never set before being tested here.
>
> remove the test on is_zimage to make this code reachable.
>
> Signed-off-by: Guillaume Ranquet <ranquet.guillaume at gmail.com>
> ---
>  arch/x86/lib/bootm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list