After the refactoring, it is very clear that CompressedData is initialized twice, using exactly the same values. Drop the second one.
Signed-off-by: Leif Lindholm <l...@nuviainc.com> --- EmbeddedPkg/Library/PrePiLib/FwVol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/EmbeddedPkg/Library/PrePiLib/FwVol.c b/EmbeddedPkg/Library/PrePiLib/FwVol.c index a0672c084471..083bc27efead 100644 --- a/EmbeddedPkg/Library/PrePiLib/FwVol.c +++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c @@ -420,8 +420,6 @@ FfsProcessSection ( // Call decompress function // if (Section->Type == EFI_SECTION_COMPRESSION) { - CompressedData = (VOID *)((UINTN)Section + FfsCompressionSectionHeaderSize (Section)); - Status = UefiDecompress ( CompressedData, DstBuffer, -- 2.20.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61927): https://edk2.groups.io/g/devel/message/61927 Mute This Topic: https://groups.io/mt/75244272/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-