]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigMisc.c
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / SecureBootConfigDxe / SecureBootConfigMisc.c
index 038707ca833c617405f3583b4d5dc81fde4cc507..22b7cfdd1f853a1f4771ff63d3fa217e2341aded 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Helper functions for SecureBoot configuration module.\r
 \r
-Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -15,15 +15,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "SecureBootConfigImpl.h"\r
 \r
 /**\r
-  Read file content into BufferPtr, the size of the allocate buffer \r
+  Read file content into BufferPtr, the size of the allocate buffer\r
   is *FileSize plus AddtionAllocateSize.\r
 \r
   @param[in]       FileHandle            The file to be read.\r
   @param[in, out]  BufferPtr             Pointers to the pointer of allocated buffer.\r
   @param[out]      FileSize              Size of input file\r
-  @param[in]       AddtionAllocateSize   Addtion size the buffer need to be allocated. \r
+  @param[in]       AddtionAllocateSize   Addtion size the buffer need to be allocated.\r
                                          In case the buffer need to contain others besides the file content.\r
-  \r
+\r
   @retval   EFI_SUCCESS                  The file was read into the buffer.\r
   @retval   EFI_INVALID_PARAMETER        A parameter was invalid.\r
   @retval   EFI_OUT_OF_RESOURCES         A memory allocation failed.\r
@@ -62,7 +62,7 @@ ReadFileContent (
   if (EFI_ERROR (Status)) {\r
     goto ON_EXIT;\r
   }\r
-  \r
+\r
   Status = FileHandle->SetPosition (FileHandle, 0);\r
   if (EFI_ERROR (Status)) {\r
     goto ON_EXIT;\r
@@ -86,7 +86,7 @@ ReadFileContent (
   }\r
 \r
 ON_EXIT:\r
-  \r
+\r
   *BufferPtr = Buffer;\r
   return Status;\r
 }\r
@@ -95,7 +95,7 @@ ON_EXIT:
   Close an open file handle.\r
 \r
   @param[in] FileHandle           The file handle to close.\r
-  \r
+\r
 **/\r
 VOID\r
 CloseFile (\r
@@ -103,7 +103,7 @@ CloseFile (
   )\r
 {\r
   if (FileHandle != NULL) {\r
-    FileHandle->Close (FileHandle);  \r
+    FileHandle->Close (FileHandle);\r
   }\r
 }\r
 \r
@@ -112,7 +112,7 @@ CloseFile (
 \r
   @param[in]   Integer          Pointer to the nonnegative integer to be converted\r
   @param[in]   IntSizeInWords   Length of integer buffer in words\r
-  @param[out]  OctetString      Converted octet string of the specified length \r
+  @param[out]  OctetString      Converted octet string of the specified length\r
   @param[in]   OSSizeInBytes    Intended length of resulting octet string in bytes\r
 \r
 Returns:\r
@@ -138,17 +138,17 @@ Int2OctStr (
        Ptr1++, Ptr2--) {\r
     *Ptr2 = *Ptr1;\r
   }\r
-       \r
+\r
   for (; Ptr1 < (CONST UINT8 *)(Integer + IntSizeInWords) && *Ptr1 == 0; Ptr1++);\r
-  \r
+\r
   if (Ptr1 < (CONST UINT8 *)(Integer + IntSizeInWords)) {\r
     return EFI_BUFFER_TOO_SMALL;\r
   }\r
-  \r
+\r
   if (Ptr2 >= OctetString) {\r
     ZeroMem (OctetString, Ptr2 - OctetString + 1);\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -158,7 +158,7 @@ Int2OctStr (
   @param[in]     Guid          Pointer to GUID to print.\r
   @param[in]     Buffer        Buffer to print Guid into.\r
   @param[in]     BufferSize    Size of Buffer.\r
-  \r
+\r
   @retval    Number of characters printed.\r
 \r
 **/\r
@@ -173,9 +173,9 @@ GuidToString (
 \r
   Size = UnicodeSPrint (\r
             Buffer,\r
-            BufferSize, \r
+            BufferSize,\r
             L"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",\r
-            (UINTN)Guid->Data1,                    \r
+            (UINTN)Guid->Data1,\r
             (UINTN)Guid->Data2,\r
             (UINTN)Guid->Data3,\r
             (UINTN)Guid->Data4[0],\r