Skip to content

Commit 615e5ca

Browse files
leiflindholmmergify[bot]
authored andcommitted
EmbeddedPkg/PrePiLib: minor cleanup in FfsProcessSection ()
Drop an else wrapper in FfsProcessSection () on the other side of an if-statemenmt that is an error return. Signed-off-by: Leif Lindholm <[email protected]>
1 parent 24fd71d commit 615e5ca

File tree

1 file changed

+8
-8
lines changed
  • EmbeddedPkg/Library/PrePiLib

1 file changed

+8
-8
lines changed

EmbeddedPkg/Library/PrePiLib/FwVol.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -488,15 +488,15 @@ FfsProcessSection (
488488
//
489489
DEBUG ((DEBUG_ERROR, "Decompress Failed - %r\n", Status));
490490
return EFI_NOT_FOUND;
491-
} else {
492-
return FfsProcessSection (
493-
SectionType,
494-
SectionCheckHook,
495-
DstBuffer,
496-
DstBufferSize,
497-
OutputBuffer
498-
);
499491
}
492+
493+
return FfsProcessSection (
494+
SectionType,
495+
SectionCheckHook,
496+
DstBuffer,
497+
DstBufferSize,
498+
OutputBuffer
499+
);
500500
}
501501

502502
CheckNextSection:

0 commit comments

Comments
 (0)