Remove the useless code.

Signed-off-by: Dong Eric <eric.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13954 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2012-11-20 02:53:21 +00:00
parent 6d55565d68
commit f8ffa6d763
1 changed files with 1 additions and 6 deletions

View File

@ -1094,7 +1094,6 @@ PeCoffLoaderLoadImage (
UINTN Index; UINTN Index;
CHAR8 *Base; CHAR8 *Base;
CHAR8 *End; CHAR8 *End;
CHAR8 *MaxEnd;
EFI_IMAGE_DATA_DIRECTORY *DirectoryEntry; EFI_IMAGE_DATA_DIRECTORY *DirectoryEntry;
EFI_IMAGE_DEBUG_DIRECTORY_ENTRY *DebugEntry; EFI_IMAGE_DEBUG_DIRECTORY_ENTRY *DebugEntry;
UINTN Size; UINTN Size;
@ -1220,7 +1219,7 @@ PeCoffLoaderLoadImage (
// Load each section of the image // Load each section of the image
// //
Section = FirstSection; Section = FirstSection;
for (Index = 0, MaxEnd = NULL; Index < NumberOfSections; Index++) { for (Index = 0; Index < NumberOfSections; Index++) {
// //
// Read the section // Read the section
// //
@ -1251,10 +1250,6 @@ PeCoffLoaderLoadImage (
End = (CHAR8 *)((UINTN) End + sizeof (EFI_TE_IMAGE_HEADER) - (UINTN)Hdr.Te->StrippedSize); End = (CHAR8 *)((UINTN) End + sizeof (EFI_TE_IMAGE_HEADER) - (UINTN)Hdr.Te->StrippedSize);
} }
if (End > MaxEnd) {
MaxEnd = End;
}
if (Section->SizeOfRawData > 0) { if (Section->SizeOfRawData > 0) {
if (!(ImageContext->IsTeImage)) { if (!(ImageContext->IsTeImage)) {
Status = ImageContext->ImageRead ( Status = ImageContext->ImageRead (