mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
OvmfPkg/Sec: Use EFI_COMMON_SECTION_HEADER to avoid casts
Drop superfluous casts. There is no change in behavior because EFI_FIRMWARE_VOLUME_IMAGE_SECTION is just a typedef of EFI_COMMON_SECTION_HEADER. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
c8ecaaf5e3
commit
5e443e3769
@ -2,6 +2,7 @@
|
|||||||
Main SEC phase code. Transitions to PEI.
|
Main SEC phase code. Transitions to PEI.
|
||||||
|
|
||||||
Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
|
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
@ -332,11 +333,11 @@ DecompressMemFvs (
|
|||||||
UINT32 AuthenticationStatus;
|
UINT32 AuthenticationStatus;
|
||||||
VOID *OutputBuffer;
|
VOID *OutputBuffer;
|
||||||
VOID *ScratchBuffer;
|
VOID *ScratchBuffer;
|
||||||
EFI_FIRMWARE_VOLUME_IMAGE_SECTION *FvSection;
|
EFI_COMMON_SECTION_HEADER *FvSection;
|
||||||
EFI_FIRMWARE_VOLUME_HEADER *PeiMemFv;
|
EFI_FIRMWARE_VOLUME_HEADER *PeiMemFv;
|
||||||
EFI_FIRMWARE_VOLUME_HEADER *DxeMemFv;
|
EFI_FIRMWARE_VOLUME_HEADER *DxeMemFv;
|
||||||
|
|
||||||
FvSection = (EFI_FIRMWARE_VOLUME_IMAGE_SECTION*) NULL;
|
FvSection = (EFI_COMMON_SECTION_HEADER*) NULL;
|
||||||
|
|
||||||
Status = FindFfsFileAndSection (
|
Status = FindFfsFileAndSection (
|
||||||
*Fv,
|
*Fv,
|
||||||
@ -386,7 +387,7 @@ DecompressMemFvs (
|
|||||||
OutputBufferSize,
|
OutputBufferSize,
|
||||||
EFI_SECTION_FIRMWARE_VOLUME_IMAGE,
|
EFI_SECTION_FIRMWARE_VOLUME_IMAGE,
|
||||||
0,
|
0,
|
||||||
(EFI_COMMON_SECTION_HEADER**) &FvSection
|
&FvSection
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Unable to find PEI FV section\n"));
|
DEBUG ((EFI_D_ERROR, "Unable to find PEI FV section\n"));
|
||||||
@ -411,7 +412,7 @@ DecompressMemFvs (
|
|||||||
OutputBufferSize,
|
OutputBufferSize,
|
||||||
EFI_SECTION_FIRMWARE_VOLUME_IMAGE,
|
EFI_SECTION_FIRMWARE_VOLUME_IMAGE,
|
||||||
1,
|
1,
|
||||||
(EFI_COMMON_SECTION_HEADER**) &FvSection
|
&FvSection
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "Unable to find DXE FV section\n"));
|
DEBUG ((EFI_D_ERROR, "Unable to find DXE FV section\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user