]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/UpdateDispatcher.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / FirmwareVolume / UpdateDriverDxe / UpdateDispatcher.c
index e1f1b023dcc0c89eb65bad9f9b50ad709f0abc21..26058b3e4d12ed87f8eb603acc1b4f156af89047 100644 (file)
@@ -3,7 +3,7 @@
   for the image to be programmed, and the flash area that is going to be\r
   programed.\r
 \r
-  Copyright (c) 2002 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -22,7 +22,7 @@ EFI_HII_HANDLE  gHiiHandle;
 \r
 /**\r
   Update the whole FV, or certain files in the FV.\r
-  \r
+\r
   @param ConfigData      Pointer to the config data on updating file.\r
   @param ImageBuffer     Image buffer to be updated.\r
   @param ImageSize       Image size.\r
@@ -89,7 +89,7 @@ PerformUpdateOnFirmwareVolume (
     //\r
     Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);\r
     if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {\r
-      continue;     \r
+      continue;\r
     }\r
 \r
     Status            = FvbProtocol->GetPhysicalAddress (\r
@@ -197,7 +197,7 @@ PerformUpdateOnFlashArea (
     Print (TmpStr, FlashAddress, ((UINT64)SizeLeft + FlashAddress));\r
     FreePool (TmpStr);\r
   }\r
-  \r
+\r
   //\r
   // Locate all Fvb protocol\r
   //\r
@@ -242,7 +242,7 @@ PerformUpdateOnFlashArea (
       //\r
       Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);\r
       if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {\r
-        continue;     \r
+        continue;\r
       }\r
 \r
       Status        = FvbProtocol->GetPhysicalAddress (\r
@@ -326,7 +326,7 @@ PerformUpdateOnFlashArea (
     if (EFI_ERROR (Status)) {\r
       return Status;\r
     }\r
\r
+\r
     //\r
     // Check if we are done with the update\r
     //\r
@@ -540,7 +540,7 @@ ProcessUpdateImage (
   FvAlignment = 1 << ((FwVolHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);\r
   //\r
   // FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.\r
-  // \r
+  //\r
   if (FvAlignment < 8) {\r
     FvAlignment = 8;\r
   }\r
@@ -583,7 +583,7 @@ ProcessUpdateImage (
 /**\r
   Find the image in the same FV and program it in a target Firmware Volume device.\r
   After update image, it will reset system and no return.\r
-  \r
+\r
   @param ImageHandle   A handle for the image that is initializing this driver\r
   @param SystemTable   A pointer to the EFI system table\r
 \r
@@ -602,7 +602,7 @@ InitializeUpdateDriver (
   EFI_LOADED_IMAGE_PROTOCOL             *LoadedImageProtocol;\r
   EFI_FIRMWARE_VOLUME2_PROTOCOL         *FwVolProtocol;\r
   EFI_FIRMWARE_VOLUME2_PROTOCOL         *DataFwVolProtocol;\r
-  MEDIA_FW_VOL_FILEPATH_DEVICE_PATH     *FwVolFilePathNode; \r
+  MEDIA_FW_VOL_FILEPATH_DEVICE_PATH     *FwVolFilePathNode;\r
   MEDIA_FW_VOL_FILEPATH_DEVICE_PATH     *AlignedDevPathNode;\r
   EFI_DEVICE_PATH_PROTOCOL              *FilePathNode;\r
   EFI_SECTION_TYPE                      SectionType;\r
@@ -815,7 +815,7 @@ InitializeUpdateDriver (
                UpdateConfigData\r
                );\r
     //\r
-    // Shall updates be serialized so that if an update is not successfully completed, \r
+    // Shall updates be serialized so that if an update is not successfully completed,\r
     // the remaining updates won't be performed.\r
     //\r
     if (EFI_ERROR (Status)) {\r