mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg/AcpiLib: Fix code formatting errors
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4046 This package did not have CI enabled so code changes were merged that fail uncrustify formatting. This change updates those files to include uncustify formatting. Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Abner Chang <abner.chang@amd.com> Cc: Daniel Schaefer <git@danielschaefer.me> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
f01d3ee12c
commit
51e0599536
|
@ -198,7 +198,7 @@ AcpiUpdateChecksum (
|
|||
{
|
||||
UINTN ChecksumOffset;
|
||||
|
||||
if (Buffer == NULL || Size == 0) {
|
||||
if ((Buffer == NULL) || (Size == 0)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
@ -249,9 +249,10 @@ AcpiLocateTableBySignature (
|
|||
EFI_ACPI_TABLE_VERSION TableVersion;
|
||||
UINTN TableIndex;
|
||||
|
||||
if (AcpiSdtProtocol == NULL
|
||||
|| Table == NULL
|
||||
|| TableKey == NULL) {
|
||||
if ( (AcpiSdtProtocol == NULL)
|
||||
|| (Table == NULL)
|
||||
|| (TableKey == NULL))
|
||||
{
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
@ -315,7 +316,7 @@ AcpiAmlObjectUpdateInteger (
|
|||
UINTN BufferSize;
|
||||
UINTN DataSize;
|
||||
|
||||
if (AcpiSdtProtocol == NULL || AsciiObjectPath == NULL) {
|
||||
if ((AcpiSdtProtocol == NULL) || (AsciiObjectPath == NULL)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
@ -332,6 +333,7 @@ AcpiAmlObjectUpdateInteger (
|
|||
Status = EFI_NOT_FOUND;
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
ASSERT (DataType == EFI_ACPI_DATA_TYPE_OPCODE);
|
||||
ASSERT (Buffer != NULL);
|
||||
|
||||
|
@ -350,7 +352,7 @@ AcpiAmlObjectUpdateInteger (
|
|||
ASSERT (DataType == EFI_ACPI_DATA_TYPE_OPCODE);
|
||||
ASSERT (Buffer != NULL);
|
||||
|
||||
if (Buffer[0] == AML_ZERO_OP || Buffer[0] == AML_ONE_OP) {
|
||||
if ((Buffer[0] == AML_ZERO_OP) || (Buffer[0] == AML_ONE_OP)) {
|
||||
Status = AcpiSdtProtocol->SetOption (DataHandle, 0, (VOID *)&Value, sizeof (UINT8));
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue