KW cleanup

Signed-off-by: Ravi Rangarajan <ravi.p.rangarajan@intel.com>
This commit is contained in:
Ravi Rangarajan 2019-09-27 15:15:35 -07:00 committed by Maurice Ma
parent 45cceeed4d
commit 332c769f19
1 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,8 @@ NormalBootPath (
AddMeasurePoint (0x31A0);
PldBase = 0;
PldEntry = NULL;
Status = EFI_SUCCESS;
if (Dst[0] == 0x00005A4D) {
// It is a PE format
@ -173,7 +175,6 @@ NormalBootPath (
} else if (IsElfImage (Dst)) {
Status = LoadElfImage (Dst, (VOID *)&PldEntry);
} else {
PldEntry = NULL;
if (FeaturePcdGet (PcdLinuxPayloadEnabled)) {
if (IsBzImage (Dst)) {
// It is a Linux kernel image