MdePkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the MdePkg 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: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Michael Kubacki
2021-12-05 14:54:05 -08:00
committed by mergify[bot]
parent 1436aea4d5
commit 2f88bd3a12
975 changed files with 55681 additions and 57790 deletions

View File

@@ -38,27 +38,26 @@ PostCode (
)
{
switch (PcdGet8 (PcdPort80DataWidth)) {
case 8:
IoWrite8 (0x80, (UINT8)(Value));
break;
case 16:
IoWrite16 (0x80, (UINT16)(Value));
break;
case 32:
IoWrite32 (0x80, Value);
break;
default:
//
// Assert on the invalid data width
//
ASSERT (FALSE);
break;
case 8:
IoWrite8 (0x80, (UINT8)(Value));
break;
case 16:
IoWrite16 (0x80, (UINT16)(Value));
break;
case 32:
IoWrite32 (0x80, Value);
break;
default:
//
// Assert on the invalid data width
//
ASSERT (FALSE);
break;
}
return Value;
}
/**
Sends an 32-bit value to a POST and associated ASCII string.
@@ -94,7 +93,6 @@ PostCodeWithDescription (
return Value;
}
/**
Returns TRUE if POST Codes are enabled.
@@ -113,10 +111,9 @@ PostCodeEnabled (
VOID
)
{
return (BOOLEAN) ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);
return (BOOLEAN)((PcdGet8 (PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);
}
/**
Returns TRUE if POST code descriptions are enabled.
@@ -135,5 +132,5 @@ PostCodeDescriptionEnabled (
VOID
)
{
return (BOOLEAN) ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);
return (BOOLEAN)((PcdGet8 (PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);
}