]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / DxeCapsuleLib / DxeCapsuleLib.c
index eaed06e0120f28aeaa1df89b620d4032902cadbc..88e609d08a4f4ecae2f2b65fe17dfece3a369c47 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Capsule Library instance to process capsule images.\r
 \r
-  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 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 of the BSD License\r
@@ -82,7 +82,7 @@ ValidateFmpCapsule (
 \r
   if (ItemNum == FmpCapsuleHeader->EmbeddedDriverCount) {\r
     //\r
-    // No payload element \r
+    // No payload element\r
     //\r
     if (((UINT8 *)FmpCapsuleHeader + ItemOffsetList[ItemNum - 1]) < EndOfCapsule) {\r
       return EFI_SUCCESS;\r
@@ -123,7 +123,7 @@ ValidateFmpCapsule (
 }\r
 \r
 /**\r
-  Process Firmware management protocol data capsule.  \r
+  Process Firmware management protocol data capsule.\r
 \r
   @param  CapsuleHeader         Points to a capsule header.\r
 \r
@@ -185,15 +185,15 @@ ProcessFmpCapsuleImage (
   }\r
 \r
   //\r
-  // 1. ConnectAll to ensure \r
-  //    All the communication protocol required by driver in capsule installed \r
+  // 1. ConnectAll to ensure\r
+  //    All the communication protocol required by driver in capsule installed\r
   //    All FMP protocols are installed\r
   //\r
   BdsLibConnectAll();\r
 \r
 \r
   //\r
-  // 2. Try to load & start all the drivers within capsule \r
+  // 2. Try to load & start all the drivers within capsule\r
   //\r
   SetDevicePathNodeLength (&MemMapNode.Header, sizeof (MemMapNode));\r
   MemMapNode.Header.Type     = HARDWARE_DEVICE_PATH;\r
@@ -230,8 +230,8 @@ ProcessFmpCapsuleImage (
     }\r
 \r
     Status = gBS->StartImage(\r
-                    ImageHandle, \r
-                    &ExitDataSize, \r
+                    ImageHandle,\r
+                    &ExitDataSize,\r
                     NULL\r
                     );\r
     if (EFI_ERROR(Status)) {\r
@@ -241,7 +241,7 @@ ProcessFmpCapsuleImage (
   }\r
 \r
   //\r
-  // Connnect all again to connect drivers within capsule \r
+  // Connnect all again to connect drivers within capsule\r
   //\r
   if (FmpCapsuleHeader->EmbeddedDriverCount > 0) {\r
     BdsLibConnectAll();\r
@@ -318,7 +318,7 @@ ProcessFmpCapsuleImage (
       TempFmpImageInfo = FmpImageInfoBuf;\r
       for (Index2 = 0; Index2 < FmpImageInfoCount; Index2++) {\r
         //\r
-        // Check all the payload entry in capsule payload list \r
+        // Check all the payload entry in capsule payload list\r
         //\r
         for (Index = FmpCapsuleHeader->EmbeddedDriverCount; Index < ItemNum; Index++) {\r
           ImageHeader  = (EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *)((UINT8 *)FmpCapsuleHeader + ItemOffsetList[Index]);\r