Skip to content

Commit

Permalink
fix: avoid unnecessary FdtTable reinstall
Browse files Browse the repository at this point in the history
Do not reinstall FdtTable in UpdateFdt() if no overlays were applied.

Signed-off-by: Bob Morgan <[email protected]>
Reviewed-by: Ashish Singhal <[email protected]>
  • Loading branch information
bobm21 authored and jgarver committed Dec 12, 2023
1 parent 77c0079 commit 145c2dd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,12 @@ UpdateFdt (
}
}
}
}

// Install DTB again so that any prior DTB updates that got skipped because of missing
// overlays are now applied.
gBS->InstallConfigurationTable (&gFdtTableGuid, Dtb);
return;
// Install DTB again so that any prior DTB updates that got skipped because of missing
// overlays are now applied.
gBS->InstallConfigurationTable (&gFdtTableGuid, Dtb);
return;
}
}

// Remove plugin-manager node for device trees.
Expand Down

0 comments on commit 145c2dd

Please sign in to comment.