-/**@file\r
+/** @file\r
Common filling functions used in translating Datahub's record\r
to PI SMBIOS's record.\r
\r
@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
// 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
}\r
\r
MemoryDeviceSize = MemoryDeviceSize & 0x7fff;\r
- if (MemoryDeviceSize != 0 && MemoryDeviceSizeUnitMega == FALSE) {\r
+ if (MemoryDeviceSize != 0 && !MemoryDeviceSizeUnitMega) {\r
MemoryDeviceSize |= 0x8000;\r
}\r
\r
@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
-/**@file\r
+/** @file\r
Translate the DataHub records via EFI_DATA_HUB_PROTOCOL to Smbios recorders \r
via EFI_SMBIOS_PROTOCOL.\r
\r
//\r
StructureNode = AllocateZeroPool (sizeof (SMBIOS_STRUCTURE_NODE));\r
\r
- if (!StructureNode) {\r
+ if (StructureNode == NULL) {\r
goto Done;\r
}\r
\r
// 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
// 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
// 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