]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
Update the comments to describe the purpose of Removable array.
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / BdsBoot.c
index 71e2c9428bf706a6bad007357ef8adc86e2659b2..4863b648f1f7eb448cc50ad4b02dd22d5146521f 100644 (file)
@@ -1430,8 +1430,6 @@ BdsLibEnumerateAllBootOption (
   EFI_IMAGE_OPTIONAL_HEADER_UNION       HdrData;\r
   EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION   Hdr;\r
 \r
-  Removable[0]  = FALSE;\r
-  Removable[1]  = TRUE;\r
   FloppyNumber  = 0;\r
   CdromNumber   = 0;\r
   UsbNumber     = 0;\r
@@ -1484,8 +1482,13 @@ BdsLibEnumerateAllBootOption (
   BdsDeleteAllInvalidEfiBootOption ();\r
 \r
   //\r
-  // Parse removable media followed by fixed media\r
+  // Parse removable media followed by fixed media.\r
+  // The Removable[] array is used by the for-loop below to create removable media boot options \r
+  // at first, and then to create fixed media boot options.\r
   //\r
+  Removable[0]  = FALSE;\r
+  Removable[1]  = TRUE;\r
+\r
   gBS->LocateHandleBuffer (\r
         ByProtocol,\r
         &gEfiBlockIoProtocolGuid,\r