]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Image/ImageFile.c
Code Scrub for Dxe Core.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Image / ImageFile.c
index c9fc6d632dc4a89a73dbd6b1ce47208a522badbc..3776e57513f94989370931a25eba2a7127b9a1a9 100644 (file)
@@ -20,21 +20,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   will access the file either from a memory copy, from a file\r
   system interface, or from the load file interface.\r
 \r
-  @param  BootPolicy             Policy for Open Image File. \r
-  @param  SourceBuffer           Pointer to the memory location containing copy \r
-                                 of the image to be loaded. \r
-  @param  SourceSize             The size in bytes of SourceBuffer. \r
-  @param  FilePath               The specific file path from which the image is \r
-                                 loaded \r
-  @param  DeviceHandle           Pointer to the return device handle. \r
-  @param  ImageFileHandle        Pointer to the image file handle. \r
-  @param  AuthenticationStatus   Pointer to a caller-allocated UINT32 in which \r
-                                 the authentication status is returned. \r
-\r
-  @retval EFI_SUCCESS            Image file successfully opened. \r
-  @retval EFI_LOAD_ERROR         If the caller passed a copy of the file, and \r
-                                 SourceSize is 0. \r
-  @retval EFI_INVALID_PARAMETER  File path is not valid. \r
+  @param  BootPolicy             Policy for Open Image File.\r
+  @param  SourceBuffer           Pointer to the memory location containing copy\r
+                                 of the image to be loaded.\r
+  @param  SourceSize             The size in bytes of SourceBuffer.\r
+  @param  FilePath               The specific file path from which the image is\r
+                                 loaded\r
+  @param  DeviceHandle           Pointer to the return device handle.\r
+  @param  ImageFileHandle        Pointer to the image file handle.\r
+  @param  AuthenticationStatus   Pointer to a caller-allocated UINT32 in which\r
+                                 the authentication status is returned.\r
+\r
+  @retval EFI_SUCCESS            Image file successfully opened.\r
+  @retval EFI_LOAD_ERROR         If the caller passed a copy of the file, and\r
+                                 SourceSize is 0.\r
+  @retval EFI_INVALID_PARAMETER  File path is not valid.\r
   @retval EFI_NOT_FOUND          File not found.\r
 \r
 **/\r
@@ -175,7 +175,7 @@ CoreOpenImageFile (
       //\r
       // Duplicate the device path to avoid the access to unaligned device path node.\r
       // Because the device path consists of one or more FILE PATH MEDIA DEVICE PATH\r
-      // nodes, It assures the fields in device path nodes are 2 byte aligned. \r
+      // nodes, It assures the fields in device path nodes are 2 byte aligned.\r
       //\r
       FilePathNode = (FILEPATH_DEVICE_PATH *)CoreDuplicateDevicePath((EFI_DEVICE_PATH_PROTOCOL *)(UINTN)FilePathNode);\r
       if (FilePathNode == NULL) {\r
@@ -220,7 +220,7 @@ CoreOpenImageFile (
           FilePathNode = (FILEPATH_DEVICE_PATH *) NextDevicePathNode (&FilePathNode->Header);\r
         }\r
         //\r
-        // Free the allocated memory pool \r
+        // Free the allocated memory pool\r
         //\r
         CoreFreePool(OriginalFilePathNode);\r
       }\r
@@ -337,13 +337,13 @@ Done:
   Read image file (specified by UserHandle) into user specified buffer with specified offset\r
   and length.\r
 \r
-  @param  UserHandle             Image file handle \r
-  @param  Offset                 Offset to the source file \r
-  @param  ReadSize               For input, pointer of size to read; For output, \r
-                                 pointer of size actually read. \r
-  @param  Buffer                 Buffer to write into \r
+  @param  UserHandle             Image file handle\r
+  @param  Offset                 Offset to the source file\r
+  @param  ReadSize               For input, pointer of size to read; For output,\r
+                                 pointer of size actually read.\r
+  @param  Buffer                 Buffer to write into\r
 \r
-  @retval EFI_SUCCESS            Successfully read the specified part of file \r
+  @retval EFI_SUCCESS            Successfully read the specified part of file\r
                                  into buffer.\r
 \r
 **/\r
@@ -382,11 +382,11 @@ CoreReadImageFile (
   Search a handle to a device on a specified device path that supports a specified protocol,\r
   interface of that protocol on that handle is another output.\r
 \r
-  @param  Protocol               The protocol to search for \r
-  @param  FilePath               The specified device path \r
-  @param  Interface              Interface of the protocol on the handle \r
-  @param  Handle                 The handle to the device on the specified device \r
-                                 path that supports the protocol. \r
+  @param  Protocol               The protocol to search for\r
+  @param  FilePath               The specified device path\r
+  @param  Interface              Interface of the protocol on the handle\r
+  @param  Handle                 The handle to the device on the specified device\r
+                                 path that supports the protocol.\r
 \r
   @return Status code.\r
 \r
@@ -414,13 +414,13 @@ CoreDevicePathToInterface (
   to allocate the proper sized buffer for various\r
   EFI interfaces.\r
 \r
-  @param  Status                 Current status \r
-  @param  Buffer                 Current allocated buffer, or NULL \r
-  @param  BufferSize             Current buffer size needed \r
+  @param  Status                 Current status\r
+  @param  Buffer                 Current allocated buffer, or NULL\r
+  @param  BufferSize             Current buffer size needed\r
 \r
-  @retval TRUE                   if the buffer was reallocated and the caller \r
-                                 should try the API again. \r
-  @retval FALSE                  buffer could not be allocated and the caller \r
+  @retval TRUE                   if the buffer was reallocated and the caller\r
+                                 should try the API again.\r
+  @retval FALSE                  buffer could not be allocated and the caller\r
                                  should not try the API again.\r
 \r
 **/\r