Update the comments to describe the purpose of Removable array.

Signed-off-by: niruiyu
Reviewed-by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11709 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niruiyu 2011-05-27 03:24:34 +00:00
parent 7c1fd3239d
commit 701e17e520
1 changed files with 6 additions and 3 deletions

View File

@ -1430,8 +1430,6 @@ BdsLibEnumerateAllBootOption (
EFI_IMAGE_OPTIONAL_HEADER_UNION HdrData;
EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr;
Removable[0] = FALSE;
Removable[1] = TRUE;
FloppyNumber = 0;
CdromNumber = 0;
UsbNumber = 0;
@ -1484,8 +1482,13 @@ BdsLibEnumerateAllBootOption (
BdsDeleteAllInvalidEfiBootOption ();
//
// Parse removable media followed by fixed media
// Parse removable media followed by fixed media.
// The Removable[] array is used by the for-loop below to create removable media boot options
// at first, and then to create fixed media boot options.
//
Removable[0] = FALSE;
Removable[1] = TRUE;
gBS->LocateHandleBuffer (
ByProtocol,
&gEfiBlockIoProtocolGuid,