]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / Tcg / MemoryOverwriteControl / TcgMor.c
index 4fc3330c3964d0d2851537d5aedcc09cd88df3c5..c16761bb3dd99cc71d807f4af625b2490352da3b 100644 (file)
@@ -1,17 +1,17 @@
 /** @file\r
   TCG MOR (Memory Overwrite Request) Control Driver.\r
 \r
-  This driver initilize MemoryOverwriteRequestControl variable. It \r
+  This driver initilize MemoryOverwriteRequestControl variable. It\r
   will clear MOR_CLEAR_MEMORY_BIT bit if it is set. It will also do TPer Reset for\r
   those encrypted drives through EFI_STORAGE_SECURITY_COMMAND_PROTOCOL at EndOfDxe.\r
 \r
-Copyright (c) 2009 - 2015, 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
+Copyright (c) 2009 - 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
 http://opensource.org/licenses/bsd-license.php\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -36,7 +36,7 @@ OnReadyToBoot (
 {\r
   EFI_STATUS  Status;\r
   UINTN       DataSize;\r
-  \r
+\r
   if (MOR_CLEAR_MEMORY_VALUE (mMorControl) == 0x0) {\r
     //\r
     // MorControl is expected, directly return to avoid unnecessary variable operation\r
@@ -47,14 +47,14 @@ OnReadyToBoot (
   // Clear MOR_CLEAR_MEMORY_BIT\r
   //\r
   DEBUG ((EFI_D_INFO, "TcgMor: Clear MorClearMemory bit\n"));\r
-  mMorControl &= 0xFE;  \r
+  mMorControl &= 0xFE;\r
 \r
   DataSize = sizeof (mMorControl);\r
   Status   = gRT->SetVariable (\r
-               MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME, \r
-               &gEfiMemoryOverwriteControlDataGuid, \r
+               MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME,\r
+               &gEfiMemoryOverwriteControlDataGuid,\r
                EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
-               DataSize, \r
+               DataSize,\r
                &mMorControl\r
                );\r
   if (EFI_ERROR (Status)) {\r
@@ -304,7 +304,7 @@ TPerResetAtEndOfDxe (
   @param[in] ImageHandle  Image handle of this driver.\r
   @param[in] SystemTable  A Pointer to the EFI System Table.\r
 \r
-  @retval EFI_SUCEESS     \r
+  @retval EFI_SUCEESS\r
   @return Others          Some error occurs.\r
 **/\r
 EFI_STATUS\r
@@ -324,10 +324,10 @@ MorDriverEntryPoint (
 \r
   DataSize = sizeof (mMorControl);\r
   Status = gRT->GetVariable (\r
-                  MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME, \r
-                  &gEfiMemoryOverwriteControlDataGuid, \r
-                  NULL, \r
-                  &DataSize, \r
+                  MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME,\r
+                  &gEfiMemoryOverwriteControlDataGuid,\r
+                  NULL,\r
+                  &DataSize,\r
                   &mMorControl\r
                   );\r
   if (EFI_ERROR (Status)) {\r
@@ -336,10 +336,10 @@ MorDriverEntryPoint (
     //\r
     mMorControl = 0;\r
     Status = gRT->SetVariable (\r
-                    MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME, \r
-                    &gEfiMemoryOverwriteControlDataGuid, \r
+                    MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME,\r
+                    &gEfiMemoryOverwriteControlDataGuid,\r
                     EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
-                    DataSize, \r
+                    DataSize,\r
                     &mMorControl\r
                     );\r
     DEBUG ((EFI_D_INFO, "TcgMor: Create MOR variable! Status = %r\n", Status));\r