mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
OvmfPkg: BDS: drop superfluous "connect first boot option" logic
This is again obviated by our earlier BdsLibConnectAll() call. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16309 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
547222da31
commit
b90ffb9fc8
@ -1063,8 +1063,6 @@ Returns:
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT16 Timeout;
|
UINT16 Timeout;
|
||||||
EFI_EVENT UserInputDurationTime;
|
EFI_EVENT UserInputDurationTime;
|
||||||
LIST_ENTRY *Link;
|
|
||||||
BDS_COMMON_OPTION *BootOption;
|
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
EFI_INPUT_KEY Key;
|
EFI_INPUT_KEY Key;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
@ -1158,27 +1156,6 @@ Returns:
|
|||||||
//
|
//
|
||||||
// To give the User a chance to enter Setup here, if user set TimeOut is 0.
|
// To give the User a chance to enter Setup here, if user set TimeOut is 0.
|
||||||
// BDS should still give user a chance to enter Setup
|
// BDS should still give user a chance to enter Setup
|
||||||
//
|
|
||||||
// Connect first boot option, and then check user input before exit
|
|
||||||
//
|
|
||||||
for (Link = BootOptionList->ForwardLink; Link != BootOptionList;Link = Link->ForwardLink) {
|
|
||||||
BootOption = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE);
|
|
||||||
if (!IS_LOAD_OPTION_TYPE (BootOption->Attribute, LOAD_OPTION_ACTIVE)) {
|
|
||||||
//
|
|
||||||
// skip the header of the link list, becuase it has no boot option
|
|
||||||
//
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
//
|
|
||||||
// Make sure the boot option device path connected, but ignore the BBS device path
|
|
||||||
//
|
|
||||||
if (DevicePathType (BootOption->DevicePath) != BBS_DEVICE_PATH) {
|
|
||||||
BdsLibConnectDevicePath (BootOption->DevicePath);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check whether the user input after the duration time has expired
|
// Check whether the user input after the duration time has expired
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user