diff --git a/MdePkg/Library/BaseUefiImageLib/UefiImageLib.c b/MdePkg/Library/BaseUefiImageLib/UefiImageLib.c index bc9f610fba..9596b1102a 100644 --- a/MdePkg/Library/BaseUefiImageLib/UefiImageLib.c +++ b/MdePkg/Library/BaseUefiImageLib/UefiImageLib.c @@ -152,7 +152,6 @@ UefiImageInitializeContextPreHash ( ); if (!RETURN_ERROR (Status)) { Context->FormatIndex = UefiImageFormatUe; - return RETURN_SUCCESS; } } @@ -166,7 +165,6 @@ UefiImageInitializeContextPreHash ( ); if (!RETURN_ERROR (Status)) { Context->FormatIndex = UefiImageFormatPe; - return RETURN_SUCCESS; } }