The EFI_IMAGE_REL_BASED_DIR64 type has been in switch for all common relocation type, So last check-in is duplicated code. Remove it.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2076 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2006-12-08 05:09:33 +00:00
parent 265c22cc33
commit b96ad3ace8
1 changed files with 1 additions and 18 deletions

View File

@ -84,22 +84,5 @@ PeHotRelocateImageEx (
IN UINT64 Adjust
)
{
UINT64 *F64;
switch ((*Reloc) >> 12) {
case EFI_IMAGE_REL_BASED_DIR64:
F64 = (UINT64 *) Fixup;
*FixupData = ALIGN_POINTER(*FixupData, sizeof(UINT64));
if (*(UINT64 *)(*FixupData) == *F64) {
*F64 = *F64 + (UINT64) Adjust;
}
*FixupData = *FixupData + sizeof(UINT64);
break;
default:
return RETURN_UNSUPPORTED;
}
return RETURN_SUCCESS;
}