Revision: 13954
http://edk2.svn.sourceforge.net/edk2/?rev=13954&view=rev
Author: ydong10
Date: 2012-11-20 02:53:21 +0000 (Tue, 20 Nov 2012)
Log Message:
-----------
Remove the useless code.
Signed-off-by: Dong Eric <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
Modified: trunk/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
===================================================================
--- trunk/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoff.c 2012-11-20
00:59:17 UTC (rev 13953)
+++ trunk/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoff.c 2012-11-20
02:53:21 UTC (rev 13954)
@@ -1094,7 +1094,6 @@
UINTN Index;
CHAR8 *Base;
CHAR8 *End;
- CHAR8 *MaxEnd;
EFI_IMAGE_DATA_DIRECTORY *DirectoryEntry;
EFI_IMAGE_DEBUG_DIRECTORY_ENTRY *DebugEntry;
UINTN Size;
@@ -1220,7 +1219,7 @@
// Load each section of the image
//
Section = FirstSection;
- for (Index = 0, MaxEnd = NULL; Index < NumberOfSections; Index++) {
+ for (Index = 0; Index < NumberOfSections; Index++) {
//
// Read the section
//
@@ -1251,10 +1250,6 @@
End = (CHAR8 *)((UINTN) End + sizeof (EFI_TE_IMAGE_HEADER) -
(UINTN)Hdr.Te->StrippedSize);
}
- if (End > MaxEnd) {
- MaxEnd = End;
- }
-
if (Section->SizeOfRawData > 0) {
if (!(ImageContext->IsTeImage)) {
Status = ImageContext->ImageRead (
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits