Skip to content

Commit

Permalink
boot: don't print error if device tree fixup protocol isn't supported
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
craftyguy authored and bluca committed Jan 19, 2024
1 parent 0d2e660 commit fb7a902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/boot/efi/devicetree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb7a902

Please sign in to comment.