diff options
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/BaseLib/SwitchStack.c | 5 | ||||
-rw-r--r-- | MdePkg/Library/UefiLib/UefiNotTiano.c | 14 |
2 files changed, 6 insertions, 13 deletions
diff --git a/MdePkg/Library/BaseLib/SwitchStack.c b/MdePkg/Library/BaseLib/SwitchStack.c index 6b8d7af4b6..5dc21f5479 100644 --- a/MdePkg/Library/BaseLib/SwitchStack.c +++ b/MdePkg/Library/BaseLib/SwitchStack.c @@ -58,5 +58,8 @@ SwitchStack ( InternalSwitchStack (EntryPoint, Context1, Context2, NewStack, Marker);
- VA_END (Marker);
+ //
+ // InternalSwitchStack () will never return
+ //
+ ASSERT (FALSE);
}
diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c index 33a14522a9..081e25439e 100644 --- a/MdePkg/Library/UefiLib/UefiNotTiano.c +++ b/MdePkg/Library/UefiLib/UefiNotTiano.c @@ -109,7 +109,7 @@ EfiCreateEventLegacyBootEx ( NotifyContext,
LegacyBootEvent
);
- } else if (gST->Hdr.Revision >= 0x00020000 ) {
+ } else {
//
// For UEFI 2.0 and the future use an Event Group
//
@@ -121,11 +121,6 @@ EfiCreateEventLegacyBootEx ( &gEfiEventLegacyBootGuid,
LegacyBootEvent
);
- } else {
- //
- // For EFI 1.10 with no Tiano extensions return unsupported
- //
- Status = EFI_UNSUPPORTED;
}
return Status;
@@ -204,7 +199,7 @@ EfiCreateEventReadyToBootEx ( NotifyContext,
ReadyToBootEvent
);
- } else if (gST->Hdr.Revision >= 0x00020000) {
+ } else {
//
// For UEFI 2.0 and the future use an Event Group
//
@@ -216,11 +211,6 @@ EfiCreateEventReadyToBootEx ( &gEfiEventReadyToBootGuid,
ReadyToBootEvent
);
- } else {
- //
- // For EFI 1.10 with no Tiano extensions return unsupported
- //
- Status = EFI_UNSUPPORTED;
}
return Status;
|