diff options
author | Clayton Craft <clayton@craftyguy.net> | 2024-01-19 01:20:55 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-01-19 12:43:19 +0100 |
commit | fb7a902aed5a795fc5e2f613ffbfa07737b25629 (patch) | |
tree | 9252f83c2e99f9391db95dea0cc8a6eaeca1ac39 /src/boot/efi/devicetree.c | |
parent | Merge pull request #30956 from yuwata/nspawn-network-pass-wifi (diff) | |
download | systemd-fb7a902aed5a795fc5e2f613ffbfa07737b25629.tar.xz systemd-fb7a902aed5a795fc5e2f613ffbfa07737b25629.zip |
boot: don't print error if device tree fixup protocol isn't supported
This isn't a failure we care about, and it's somewhat alarming to see a
red error message flash up on the display when booting, so this just
simply returns EFI_SUCCESS and skips printing the "error" altogether.
Diffstat (limited to '')
-rw-r--r-- | src/boot/efi/devicetree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/boot/efi/devicetree.c b/src/boot/efi/devicetree.c index b139780510..61a43cd77d 100644 --- a/src/boot/efi/devicetree.c +++ b/src/boot/efi/devicetree.c @@ -33,8 +33,9 @@ static EFI_STATUS devicetree_fixup(struct devicetree_state *state, size_t len) { assert(state); err = BS->LocateProtocol(MAKE_GUID_PTR(EFI_DT_FIXUP_PROTOCOL), NULL, (void **) &fixup); + /* Skip fixup if we cannot locate device tree fixup protocol */ if (err != EFI_SUCCESS) - return log_error_status(EFI_SUCCESS, "Could not locate device tree fixup protocol, skipping."); + return EFI_SUCCESS; size = devicetree_allocated(state); err = fixup->Fixup(fixup, PHYSICAL_ADDRESS_TO_POINTER(state->addr), &size, |