]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Variable/Pei/Variable.c
Update the copyright notice format
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / Pei / Variable.c
index 8ceebedd15bcde99af2a82e2ec452b6e506876f4..5424aa501ff3e709065f3642ea4df585f7eaffa3 100644 (file)
@@ -3,8 +3,8 @@
   Implement ReadOnly Variable Services required by PEIM and install\r
   PEI ReadOnly Varaiable2 PPI. These services operates the non volatile storage space.\r
 \r
-Copyright (c) 2006 - 2008 Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2010, 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
@@ -465,7 +465,7 @@ FindVariable (
       //\r
       // Record Variable in VariableIndex HOB\r
       //\r
-      if (IndexTable->Length < VARIABLE_INDEX_TABLE_VOLUME && StopRecord != TRUE) {\r
+      if (IndexTable->Length < VARIABLE_INDEX_TABLE_VOLUME && !StopRecord) {\r
         Offset = (UINT32)((UINTN)Variable - (UINTN)LastVariable);\r
         //\r
         // The distance of two neighbouring VAR_ADDED variable is larger than 2^16, \r
@@ -476,7 +476,7 @@ FindVariable (
           StopRecord = TRUE;\r
         }\r
 \r
-        if (StopRecord != TRUE) {\r
+        if (!StopRecord) {\r
           IndexTable->Index[IndexTable->Length++] = (UINT16) Offset;\r
         }\r
         LastVariable = Variable;\r
@@ -590,9 +590,10 @@ PeiGetVariable (
   @param  This              A pointer to this instance of the EFI_PEI_READ_ONLY_VARIABLE2_PPI.\r
 \r
   @param  VariableNameSize  On entry, points to the size of the buffer pointed to by VariableName.\r
+                            On return, the size of the variable name buffer.\r
   @param  VariableName      On entry, a pointer to a null-terminated string that is the variable's name.\r
                             On return, points to the next variable's null-terminated name string.\r
-  @param  VariableGuid      On entry, a pointer to an UEFI _GUID that is the variable's GUID. \r
+  @param  VariableGuid      On entry, a pointer to an EFI_GUID that is the variable's GUID. \r
                             On return, a pointer to the next variable's GUID.\r
 \r
   @retval EFI_SUCCESS           The variable was read successfully.\r