]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / BmBoot.c
index 59bd1e4c6c00ca3c59fbade40c075c86d636345a..6a23477eb8730dfa94faa4e6447b792d514cd901 100644 (file)
@@ -109,7 +109,7 @@ BmFindBootOptionInVariable (
   EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions;\r
   UINTN                        BootOptionCount;\r
   UINTN                        Index;\r
-  \r
+\r
   OptionNumber = LoadOptionNumberUnassigned;\r
 \r
   //\r
@@ -233,7 +233,7 @@ BmAdjustFvFilePath (
       break;\r
     }\r
   }\r
-  \r
+\r
   if (FvHandles != NULL) {\r
     FreePool (FvHandles);\r
   }\r
@@ -242,7 +242,7 @@ BmAdjustFvFilePath (
 \r
 /**\r
   Check if it's a Device Path pointing to FV file.\r
-  \r
+\r
   The function doesn't garentee the device path points to existing FV file.\r
 \r
   @param  DevicePath     Input device path.\r
@@ -471,13 +471,13 @@ BmMatchUsbWwid (
 }\r
 \r
 /**\r
-  Find a USB device which match the specified short-form device path start with \r
+  Find a USB device which match the specified short-form device path start with\r
   USB Class or USB WWID device path. If ParentDevicePath is NULL, this function\r
   will search in all USB devices of the platform. If ParentDevicePath is not NULL,\r
   this function will only search in its child devices.\r
 \r
   @param DevicePath           The device path that contains USB Class or USB WWID device path.\r
-  @param ParentDevicePathSize The length of the device path before the USB Class or \r
+  @param ParentDevicePathSize The length of the device path before the USB Class or\r
                               USB WWID device path.\r
   @param UsbIoHandleCount     A pointer to the count of the returned USB IO handles.\r
 \r
@@ -499,7 +499,7 @@ BmFindUsbDevice (
   UINTN                     Index;\r
   BOOLEAN                   Matched;\r
 \r
-  ASSERT (UsbIoHandleCount != NULL);  \r
+  ASSERT (UsbIoHandleCount != NULL);\r
 \r
   //\r
   // Get all UsbIo Handles.\r
@@ -655,7 +655,7 @@ BmExpandFileDevicePath (
   UINTN                           MediaType;\r
   EFI_DEVICE_PATH_PROTOCOL        *NextFullPath;\r
   BOOLEAN                         GetNext;\r
-  \r
+\r
   EfiBootManagerConnectAll ();\r
   Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiSimpleFileSystemProtocolGuid, NULL, &HandleCount, &Handles);\r
   if (EFI_ERROR (Status)) {\r
@@ -780,7 +780,7 @@ BmCachePartitionDevicePath (
 {\r
   EFI_DEVICE_PATH_PROTOCOL        *TempDevicePath;\r
   UINTN                           Count;\r
-  \r
+\r
   if (BmMatchDevicePaths (*CachedDevicePath, DevicePath)) {\r
     TempDevicePath = *CachedDevicePath;\r
     *CachedDevicePath = BmDelPartMatchInstance (*CachedDevicePath, DevicePath);\r
@@ -1670,12 +1670,12 @@ BmIsBootManagerMenuFilePath (
 /**\r
   Attempt to boot the EFI boot option. This routine sets L"BootCurent" and\r
   also signals the EFI ready to boot event. If the device path for the option\r
-  starts with a BBS device path a legacy boot is attempted via the registered \r
-  gLegacyBoot function. Short form device paths are also supported via this \r
+  starts with a BBS device path a legacy boot is attempted via the registered\r
+  gLegacyBoot function. Short form device paths are also supported via this\r
   rountine. A device path starting with MEDIA_HARDDRIVE_DP, MSG_USB_WWID_DP,\r
   MSG_USB_CLASS_DP gets expaned out to find the first device that matches.\r
-  If the BootOption Device Path fails the removable media boot algorithm \r
-  is attempted (\EFI\BOOTIA32.EFI, \EFI\BOOTX64.EFI,... only one file type \r
+  If the BootOption Device Path fails the removable media boot algorithm\r
+  is attempted (\EFI\BOOTIA32.EFI, \EFI\BOOTX64.EFI,... only one file type\r
   is tried per processor type)\r
 \r
   @param  BootOption    Boot Option to try and boot.\r
@@ -1854,7 +1854,7 @@ EfiBootManagerBoot (
         Status = EfiCreateEventLegacyBootEx(\r
                    TPL_NOTIFY,\r
                    BmEndOfBdsPerfCode,\r
-                   NULL, \r
+                   NULL,\r
                    &LegacyBootEvent\r
                    );\r
         ASSERT_EFI_ERROR (Status);\r
@@ -1868,7 +1868,7 @@ EfiBootManagerBoot (
     PERF_END_EX (gImageHandle, "BdsAttempt", NULL, 0, (UINT32) OptionNumber);\r
     return;\r
   }\r
\r
+\r
   //\r
   // Provide the image with its load options\r
   //\r
@@ -2021,7 +2021,7 @@ BmMatchPartitionDevicePathNode (
   3. Non-BlockIo SimpleFileSystem - The boot option points to a device supporting\r
                                     SimpleFileSystem Protocol, but not supporting BlockIo\r
                                     protocol.\r
-  4. LoadFile                     - The boot option points to the media supporting \r
+  4. LoadFile                     - The boot option points to the media supporting\r
                                     LoadFile protocol.\r
   Reference: UEFI Spec chapter 3.3 Boot Option Variables Default Boot Behavior\r
 \r
@@ -2246,7 +2246,7 @@ EfiBootManagerRefreshAllBootOption (
   // Remove invalid EFI boot options from NV\r
   //\r
   for (Index = 0; Index < NvBootOptionCount; Index++) {\r
-    if (((DevicePathType (NvBootOptions[Index].FilePath) != BBS_DEVICE_PATH) || \r
+    if (((DevicePathType (NvBootOptions[Index].FilePath) != BBS_DEVICE_PATH) ||\r
          (DevicePathSubType (NvBootOptions[Index].FilePath) != BBS_BBS_DP)\r
         ) && BmIsAutoCreateBootOption (&NvBootOptions[Index])\r
        ) {\r
@@ -2429,7 +2429,7 @@ EfiBootManagerGetBootManagerMenu (
   UINTN                        BootOptionCount;\r
   EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions;\r
   UINTN                        Index;\r
-  \r
+\r
   BootOptions = EfiBootManagerGetLoadOptions (&BootOptionCount, LoadOptionTypeBoot);\r
 \r
   for (Index = 0; Index < BootOptionCount; Index++) {\r