Fix some typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9620 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -105,7 +105,7 @@ SmbiosFldCacheType10 (
|
|||||||
@param StructureNode The structure node whose structure buffer is to be enlarged.
|
@param StructureNode The structure node whose structure buffer is to be enlarged.
|
||||||
@param NewLength The new length of SMBIOS record which does not include unformat area.
|
@param NewLength The new length of SMBIOS record which does not include unformat area.
|
||||||
@param OldBufferSize The old size of SMBIOS record buffer.
|
@param OldBufferSize The old size of SMBIOS record buffer.
|
||||||
@param NewSize The new size is targeted for enlarged.
|
@param NewBufferSize The new size is targeted for enlarged.
|
||||||
|
|
||||||
@retval EFI_OUT_OF_RESOURCES No more memory to allocate new record
|
@retval EFI_OUT_OF_RESOURCES No more memory to allocate new record
|
||||||
@retval EFI_SUCCESS Success to enlarge the record buffer size.
|
@retval EFI_SUCCESS Success to enlarge the record buffer size.
|
||||||
@@ -437,7 +437,7 @@ SmbiosFldInterLink (
|
|||||||
// Hang this in the link data fixup node
|
// Hang this in the link data fixup node
|
||||||
//
|
//
|
||||||
LinkDataFixupNode = AllocateZeroPool (sizeof (SMBIOS_LINK_DATA_FIXUP_NODE));
|
LinkDataFixupNode = AllocateZeroPool (sizeof (SMBIOS_LINK_DATA_FIXUP_NODE));
|
||||||
if (!LinkDataFixupNode) {
|
if (LinkDataFixupNode == NULL) {
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -331,7 +331,7 @@ SmbiosFldMemoryType3 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
MemoryDeviceSize = MemoryDeviceSize & 0x7fff;
|
MemoryDeviceSize = MemoryDeviceSize & 0x7fff;
|
||||||
if (MemoryDeviceSize != 0 && MemoryDeviceSizeUnitMega == FALSE) {
|
if (MemoryDeviceSize != 0 && !MemoryDeviceSizeUnitMega) {
|
||||||
MemoryDeviceSize |= 0x8000;
|
MemoryDeviceSize |= 0x8000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -253,7 +253,7 @@ SmbiosGetTypeMinimalLength (
|
|||||||
@param StructureNode The structure node whose structure buffer is to be enlarged.
|
@param StructureNode The structure node whose structure buffer is to be enlarged.
|
||||||
@param NewLength The new length of SMBIOS record which does not include unformat area.
|
@param NewLength The new length of SMBIOS record which does not include unformat area.
|
||||||
@param OldBufferSize The old size of SMBIOS record buffer.
|
@param OldBufferSize The old size of SMBIOS record buffer.
|
||||||
@param NewSize The new size is targeted for enlarged.
|
@param NewBufferSize The new size is targeted for enlarged.
|
||||||
|
|
||||||
@retval EFI_OUT_OF_RESOURCES No more memory to allocate new record
|
@retval EFI_OUT_OF_RESOURCES No more memory to allocate new record
|
||||||
@retval EFI_SUCCESS Success to enlarge the record buffer size.
|
@retval EFI_SUCCESS Success to enlarge the record buffer size.
|
||||||
|
@@ -168,7 +168,7 @@ SmbiosProcessDataRecord (
|
|||||||
//
|
//
|
||||||
StructureNode = AllocateZeroPool (sizeof (SMBIOS_STRUCTURE_NODE));
|
StructureNode = AllocateZeroPool (sizeof (SMBIOS_STRUCTURE_NODE));
|
||||||
|
|
||||||
if (!StructureNode) {
|
if (StructureNode == NULL) {
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +268,7 @@ SmbiosProcessDataRecord (
|
|||||||
// record data needs to be transformed to be filled into the field,
|
// record data needs to be transformed to be filled into the field,
|
||||||
// so let the FieldFillingFunction do it.
|
// so let the FieldFillingFunction do it.
|
||||||
//
|
//
|
||||||
if (!(Conversion->FieldFillingFunction)) {
|
if (Conversion->FieldFillingFunction == NULL) {
|
||||||
//
|
//
|
||||||
// Invalid Conversion Table Entry
|
// Invalid Conversion Table Entry
|
||||||
//
|
//
|
||||||
@@ -297,7 +297,7 @@ SmbiosProcessDataRecord (
|
|||||||
// Both field offset and field content are determined by
|
// Both field offset and field content are determined by
|
||||||
// FieldFillingFunction
|
// FieldFillingFunction
|
||||||
//
|
//
|
||||||
if (!(Conversion->FieldFillingFunction)) {
|
if (Conversion->FieldFillingFunction == NULL) {
|
||||||
//
|
//
|
||||||
// Invalid Conversion Table Entry
|
// Invalid Conversion Table Entry
|
||||||
//
|
//
|
||||||
@@ -327,7 +327,7 @@ SmbiosProcessDataRecord (
|
|||||||
// FieldFillingFunction and the function accepts the whole data record
|
// FieldFillingFunction and the function accepts the whole data record
|
||||||
// including the data header
|
// including the data header
|
||||||
//
|
//
|
||||||
if (!(Conversion->FieldFillingFunction)) {
|
if (Conversion->FieldFillingFunction == NULL) {
|
||||||
//
|
//
|
||||||
// Invalid Conversion Table Entry
|
// Invalid Conversion Table Entry
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user