OvmfPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the OvmfPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -14,8 +14,8 @@
|
||||
|
||||
#include "XenSmbiosPlatformDxe.h"
|
||||
|
||||
#define XEN_SMBIOS_PHYSICAL_ADDRESS 0x000EB000
|
||||
#define XEN_SMBIOS_PHYSICAL_END 0x000F0000
|
||||
#define XEN_SMBIOS_PHYSICAL_ADDRESS 0x000EB000
|
||||
#define XEN_SMBIOS_PHYSICAL_END 0x000F0000
|
||||
|
||||
/**
|
||||
Validates the SMBIOS entry point structure
|
||||
@@ -32,17 +32,17 @@ IsEntryPointStructureValid (
|
||||
IN SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure
|
||||
)
|
||||
{
|
||||
UINTN Index;
|
||||
UINT8 Length;
|
||||
UINT8 Checksum;
|
||||
UINT8 *BytePtr;
|
||||
UINTN Index;
|
||||
UINT8 Length;
|
||||
UINT8 Checksum;
|
||||
UINT8 *BytePtr;
|
||||
|
||||
BytePtr = (UINT8*) EntryPointStructure;
|
||||
Length = EntryPointStructure->EntryPointLength;
|
||||
BytePtr = (UINT8 *)EntryPointStructure;
|
||||
Length = EntryPointStructure->EntryPointLength;
|
||||
Checksum = 0;
|
||||
|
||||
for (Index = 0; Index < Length; Index++) {
|
||||
Checksum = Checksum + (UINT8) BytePtr[Index];
|
||||
Checksum = Checksum + (UINT8)BytePtr[Index];
|
||||
}
|
||||
|
||||
if (Checksum != 0) {
|
||||
@@ -75,18 +75,17 @@ GetXenSmbiosTables (
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (XenSmbiosPtr = (UINT8*)(UINTN) XEN_SMBIOS_PHYSICAL_ADDRESS;
|
||||
XenSmbiosPtr < (UINT8*)(UINTN) XEN_SMBIOS_PHYSICAL_END;
|
||||
XenSmbiosPtr += 0x10) {
|
||||
|
||||
XenSmbiosEntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) XenSmbiosPtr;
|
||||
|
||||
if (!AsciiStrnCmp ((CHAR8 *) XenSmbiosEntryPointStructure->AnchorString, "_SM_", 4) &&
|
||||
!AsciiStrnCmp ((CHAR8 *) XenSmbiosEntryPointStructure->IntermediateAnchorString, "_DMI_", 5) &&
|
||||
IsEntryPointStructureValid (XenSmbiosEntryPointStructure)) {
|
||||
for (XenSmbiosPtr = (UINT8 *)(UINTN)XEN_SMBIOS_PHYSICAL_ADDRESS;
|
||||
XenSmbiosPtr < (UINT8 *)(UINTN)XEN_SMBIOS_PHYSICAL_END;
|
||||
XenSmbiosPtr += 0x10)
|
||||
{
|
||||
XenSmbiosEntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *)XenSmbiosPtr;
|
||||
|
||||
if (!AsciiStrnCmp ((CHAR8 *)XenSmbiosEntryPointStructure->AnchorString, "_SM_", 4) &&
|
||||
!AsciiStrnCmp ((CHAR8 *)XenSmbiosEntryPointStructure->IntermediateAnchorString, "_DMI_", 5) &&
|
||||
IsEntryPointStructureValid (XenSmbiosEntryPointStructure))
|
||||
{
|
||||
return XenSmbiosEntryPointStructure;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user