summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library/GenericBdsLib
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-08 12:06:28 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-08 12:06:28 +0000
commite83c9064f5f83809760c84174f936bacccac1c02 (patch)
treebd16267015e6188d90bf1cf19776d8e34375b618 /IntelFrameworkModulePkg/Library/GenericBdsLib
parent13b31374407259ebb0452116df3d1a59c7dae6cf (diff)
downloadedk2-platforms-e83c9064f5f83809760c84174f936bacccac1c02.tar.xz
Add comments for the return value of GenericBdsLib functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8822 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library/GenericBdsLib')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
index d0ce36e987..7fb6082fc8 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
@@ -912,6 +912,7 @@ BdsDeleteAllInvalidEfiBootOption (
@retval EFI_SUCCESS Finished all the boot device enumerate and create
the boot option base on that boot device
+ @retval EFI_OUT_OF_RESOURCES Failed to enumerate the boot device and create the boot option list
**/
EFI_STATUS
EFIAPI
@@ -961,8 +962,8 @@ BdsLibEnumerateAllBootOption (
// device from the boot order variable
//
if (mEnumBootDevice) {
- BdsLibBuildOptionFromVar (BdsBootOptionList, L"BootOrder");
- return EFI_SUCCESS;
+ Status = BdsLibBuildOptionFromVar (BdsBootOptionList, L"BootOrder");
+ return Status;
}
//
@@ -1172,10 +1173,10 @@ BdsLibEnumerateAllBootOption (
// Make sure every boot only have one time
// boot device enumerate
//
- BdsLibBuildOptionFromVar (BdsBootOptionList, L"BootOrder");
+ Status = BdsLibBuildOptionFromVar (BdsBootOptionList, L"BootOrder");
mEnumBootDevice = TRUE;
- return EFI_SUCCESS;
+ return Status;
}
/**
@@ -1302,9 +1303,9 @@ BdsLibBootNext (
Second, check whether the device path point to a device which support SimpleFileSystemProtocol,
Third, detect the the default boot file in the Media, and return the removable Media handle.
- @param DevicePath Device Path to a bootable device
+ @param DevicePath Device Path to a bootable device
- @retval NULL The media on the DevicePath is not bootable
+ @return The bootable media handle. If the media on the DevicePath is not bootable, NULL will return.
**/
EFI_HANDLE