mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
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;
|
UINTN ChecksumOffset;
|
||||||
|
|
||||||
if (Buffer == NULL || Size == 0) {
|
if ((Buffer == NULL) || (Size == 0)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,9 +249,10 @@ AcpiLocateTableBySignature (
|
|||||||
EFI_ACPI_TABLE_VERSION TableVersion;
|
EFI_ACPI_TABLE_VERSION TableVersion;
|
||||||
UINTN TableIndex;
|
UINTN TableIndex;
|
||||||
|
|
||||||
if (AcpiSdtProtocol == NULL
|
if ( (AcpiSdtProtocol == NULL)
|
||||||
|| Table == NULL
|
|| (Table == NULL)
|
||||||
|| TableKey == NULL) {
|
|| (TableKey == NULL))
|
||||||
|
{
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -315,7 +316,7 @@ AcpiAmlObjectUpdateInteger (
|
|||||||
UINTN BufferSize;
|
UINTN BufferSize;
|
||||||
UINTN DataSize;
|
UINTN DataSize;
|
||||||
|
|
||||||
if (AcpiSdtProtocol == NULL || AsciiObjectPath == NULL) {
|
if ((AcpiSdtProtocol == NULL) || (AsciiObjectPath == NULL)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,6 +333,7 @@ AcpiAmlObjectUpdateInteger (
|
|||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT (DataType == EFI_ACPI_DATA_TYPE_OPCODE);
|
ASSERT (DataType == EFI_ACPI_DATA_TYPE_OPCODE);
|
||||||
ASSERT (Buffer != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
|
|
||||||
@ -350,7 +352,7 @@ AcpiAmlObjectUpdateInteger (
|
|||||||
ASSERT (DataType == EFI_ACPI_DATA_TYPE_OPCODE);
|
ASSERT (DataType == EFI_ACPI_DATA_TYPE_OPCODE);
|
||||||
ASSERT (Buffer != NULL);
|
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));
|
Status = AcpiSdtProtocol->SetOption (DataHandle, 0, (VOID *)&Value, sizeof (UINT8));
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user