]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix some typo.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Dec 2009 05:39:55 +0000 (05:39 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Dec 2009 05:39:55 +0000 (05:39 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9620 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Compatibility/DataHubSmBiosRecordsOnPiSmBiosThunk/ConvLib.c
EdkCompatibilityPkg/Compatibility/DataHubSmBiosRecordsOnPiSmBiosThunk/MemoryConv.c
EdkCompatibilityPkg/Compatibility/DataHubSmBiosRecordsOnPiSmBiosThunk/Thunk.h
EdkCompatibilityPkg/Compatibility/DataHubSmBiosRecordsOnPiSmBiosThunk/Translate.c

index 56df30c9fda9c1d78eb3bbbe2b77f89ce1bf6501..fac1fb7b58b467c3deeba8138a6118dd8790824e 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
   Common filling functions used in translating Datahub's record\r
   to PI SMBIOS's record.\r
   \r
@@ -105,7 +105,7 @@ SmbiosFldCacheType10 (
   @param StructureNode The structure node whose structure buffer is to be enlarged.\r
   @param NewLength     The new length of SMBIOS record which does not include unformat area.\r
   @param OldBufferSize The old size of SMBIOS record buffer.\r
-  @param NewSize       The new size is targeted for enlarged.\r
+  @param NewBufferSize The new size is targeted for enlarged.\r
   \r
   @retval EFI_OUT_OF_RESOURCES  No more memory to allocate new record\r
   @retval EFI_SUCCESS           Success to enlarge the record buffer size.\r
@@ -437,7 +437,7 @@ SmbiosFldInterLink (
     // Hang this in the link data fixup node\r
     //\r
     LinkDataFixupNode = AllocateZeroPool (sizeof (SMBIOS_LINK_DATA_FIXUP_NODE));\r
-    if (!LinkDataFixupNode) {\r
+    if (LinkDataFixupNode == NULL) {\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
 \r
index 20cd71a42e3dee61ee278196d885903c30bcc36d..9200738ee367bd6ec6229e040b67404c24928420 100644 (file)
@@ -331,7 +331,7 @@ SmbiosFldMemoryType3 (
   }\r
 \r
   MemoryDeviceSize = MemoryDeviceSize & 0x7fff;\r
-  if (MemoryDeviceSize != 0 && MemoryDeviceSizeUnitMega == FALSE) {\r
+  if (MemoryDeviceSize != 0 && !MemoryDeviceSizeUnitMega) {\r
     MemoryDeviceSize |= 0x8000;\r
   }\r
 \r
index cb375b01eeebc462a760d59ca357cca2e51677d8..2069fa962a5c5209fd1699133b574bd4a91e3446 100644 (file)
@@ -253,7 +253,7 @@ SmbiosGetTypeMinimalLength (
   @param StructureNode The structure node whose structure buffer is to be enlarged.\r
   @param NewLength     The new length of SMBIOS record which does not include unformat area.\r
   @param OldBufferSize The old size of SMBIOS record buffer.\r
-  @param NewSize       The new size is targeted for enlarged.\r
+  @param NewBufferSize The new size is targeted for enlarged.\r
   \r
   @retval EFI_OUT_OF_RESOURCES  No more memory to allocate new record\r
   @retval EFI_SUCCESS           Success to enlarge the record buffer size.\r
index 9912db8f233e40ff726ee3cd70bc81d4b3ea8d6b..3230d9657619d0b3b5502c12ad90b0fc88033980 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
   Translate the DataHub records via EFI_DATA_HUB_PROTOCOL to Smbios recorders \r
   via EFI_SMBIOS_PROTOCOL.\r
   \r
@@ -168,7 +168,7 @@ SmbiosProcessDataRecord (
       //\r
       StructureNode = AllocateZeroPool (sizeof (SMBIOS_STRUCTURE_NODE));\r
 \r
-      if (!StructureNode) {\r
+      if (StructureNode == NULL) {\r
         goto Done;\r
       }\r
 \r
@@ -268,7 +268,7 @@ SmbiosProcessDataRecord (
       // record data needs to be transformed to be filled into the field,\r
       // so let the FieldFillingFunction do it.\r
       //\r
-      if (!(Conversion->FieldFillingFunction)) {\r
+      if (Conversion->FieldFillingFunction == NULL) {\r
         //\r
         // Invalid Conversion Table Entry\r
         //\r
@@ -297,7 +297,7 @@ SmbiosProcessDataRecord (
       // Both field offset and field content are determined by\r
       // FieldFillingFunction\r
       //\r
-      if (!(Conversion->FieldFillingFunction)) {\r
+      if (Conversion->FieldFillingFunction == NULL) {\r
         //\r
         // Invalid Conversion Table Entry\r
         //\r
@@ -327,7 +327,7 @@ SmbiosProcessDataRecord (
       // FieldFillingFunction and the function accepts the whole data record\r
       // including the data header\r
       //\r
-      if (!(Conversion->FieldFillingFunction)) {\r
+      if (Conversion->FieldFillingFunction == NULL) {\r
         //\r
         // Invalid Conversion Table Entry\r
         //\r