]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Variable.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / EmbeddedPkg / Library / HalRuntimeServicesExampleLib / Variable.c
index 4d06666887bf6f19287e31e346f866b0664ef16c..0c1b76a4bb6d60ddd167e0530519d57fa6a7c12a 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   Variable services implemented from system memory\r
 \r
-  There is just a single runtime memory buffer that contans all the data. \r
+  There is just a single runtime memory buffer that contans all the data.\r
 \r
   Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
   Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
+\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
@@ -50,7 +50,7 @@ AddEntry (
   EFI_TPL                 CurrentTpl;\r
 \r
 \r
-  SizeOfString = StrSize (VariableName); \r
+  SizeOfString = StrSize (VariableName);\r
   Size = SizeOfString + sizeof (VARIABLE_ARRAY_ENTRY) + DataSize;\r
   if ((VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + Size) > mVariableArrayEnd) {\r
     // ran out of space\r
@@ -70,7 +70,7 @@ AddEntry (
   mVariableArrayNextFree = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + SizeOfString);\r
   CopyMem (mVariableArrayNextFree, Data, DataSize);\r
   mVariableArrayNextFree = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + DataSize);\r
-  \r
+\r
   if (!EfiAtRuntime ()) {\r
     // Exit Critical section\r
     gBS->RestoreTPL (CurrentTpl);\r
@@ -78,7 +78,7 @@ AddEntry (
 \r
   return Entry;\r
 }\r
-  \r
+\r
 VOID\r
 DeleteEntry (\r
   IN  VARIABLE_ARRAY_ENTRY *Entry\r
@@ -199,22 +199,22 @@ LibGetNextVariableName (
     if (Entry == NULL) {\r
       return EFI_NOT_FOUND;\r
     }\r
-    \r
+\r
     // If we are at runtime skip variables that do not have the Runitme attribute set.\r
     Done = (EfiAtRuntime () && ((Entry->Attribute & EFI_VARIABLE_RUNTIME_ACCESS) == 0)) ? FALSE : TRUE;\r
-  } \r
+  }\r
 \r
   StringSize = StrSize ((CHAR16 *)(Entry + 1));\r
   Entry = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)Entry) + (StringSize + sizeof (VARIABLE_ARRAY_ENTRY) + Entry->DataSize));\r
   if (Entry >= mVariableArrayEnd) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   if (*VariableNameSize < StringSize) {\r
     *VariableNameSize = StringSize;\r
     return EFI_BUFFER_TOO_SMALL;\r
   }\r
-  \r
+\r
   *VariableNameSize = StringSize;\r
   CopyMem (VariableName, (CHAR16 *)(Entry + 1), StringSize);\r
   CopyMem (VendorGuid, &Entry->VendorGuid, sizeof (EFI_GUID));\r
@@ -298,9 +298,9 @@ LibVariableInitialize (VOID)
   ASSERT (mVariableArray != NULL);\r
 \r
   mVariableArrayEnd = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArray) + Size);\r
-  \r
+\r
   mMaximumVariableStorageSize   = Size - sizeof (VARIABLE_ARRAY_ENTRY);\r
   mRemainingVariableStorageSize = mMaximumVariableStorageSize;\r
   mMaximumVariableSize          = mMaximumVariableStorageSize;\r
 }\r
\r
+\r