]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Remove use of EFI_ERROR
authorJan Janssen <medhefgo@web.de>
Fri, 24 Jun 2022 09:00:43 +0000 (11:00 +0200)
committerJan Janssen <medhefgo@web.de>
Mon, 27 Jun 2022 10:16:27 +0000 (12:16 +0200)
commit2a5e4fe414d9d5e6d07591066f73ed2cc712346a
treefe7f899559866fc7834e790671439d036fd4e9a4
parent8599bdb67caa292dd31e99aad7c2ab94314715ad
boot: Remove use of EFI_ERROR

The macro is ugly and annoying to use and provides no real benefit. The
only reason to use it would be to allow warnings to go through. But any
EFI APIs we call do not return warning status codes or we do not check
the return value anyway. The only other case would be BS->StartImage,
where we already treat anything other than EFI_SUCCESS as an error
anyway.

This also helps the compiler and code analyzers to better reason about
the code. In particular, this can help reduce use of uninitialized
variable warnings.
18 files changed:
src/boot/efi/boot.c
src/boot/efi/console.c
src/boot/efi/cpio.c
src/boot/efi/devicetree.c
src/boot/efi/drivers.c
src/boot/efi/graphics.c
src/boot/efi/initrd.c
src/boot/efi/linux.c
src/boot/efi/linux_x86.c
src/boot/efi/measure.c
src/boot/efi/pe.c
src/boot/efi/random-seed.c
src/boot/efi/secure-boot.c
src/boot/efi/shim.c
src/boot/efi/splash.c
src/boot/efi/stub.c
src/boot/efi/util.c
src/boot/efi/xbootldr.c