]> git.ipfire.org Git - thirdparty/u-boot.git/commit
x86: boot: fix unreachable else branch in boot_prep_linux
authorGuillaume Ranquet <ranquet.guillaume@gmail.com>
Thu, 11 Sep 2025 13:35:41 +0000 (15:35 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 3 Feb 2026 18:51:40 +0000 (12:51 -0600)
commit0cb8a88e7ab7824b7dc857fb6572705f3e19c456
treeb0d1fb90f7b6008227fd89ffab219538909c6c48
parent80a3572f9bc3fdd8f0b0fa73f2f853da71b059eb
x86: boot: fix unreachable else branch in boot_prep_linux

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@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/bootm.c