Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ MmCommunicationPeimCommon (
EFI_MM_COMMUNICATE_HEADER_V3 *CommunicateHeaderV3;
EFI_STATUS Status;
UINTN BufferSize;
UINTN HeaderSize;

//
// Check parameters
Expand All @@ -400,7 +399,6 @@ MmCommunicationPeimCommon (
{
// This is a v3 header
CommunicateHeaderV3 = (EFI_MM_COMMUNICATE_HEADER_V3 *)(UINTN)CommBuffer;
HeaderSize = sizeof (EFI_MM_COMMUNICATE_HEADER_V3);
BufferSize = CommunicateHeaderV3->BufferSize;
} else {
// This is a v1 header, do some checks
Expand Down Expand Up @@ -429,9 +427,6 @@ MmCommunicationPeimCommon (
return EFI_BAD_BUFFER_SIZE;
}

HeaderSize = sizeof (CommunicateHeader->HeaderGuid) +
sizeof (CommunicateHeader->MessageLength);

// CommBuffer is a mandatory parameter. Hence, Rely on
// MessageLength + Header to ascertain the
// total size of the communication payload rather than
Expand Down
Loading