summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2017-11-30 16:38:47 +0800
committerHao Wu <hao.a.wu@intel.com>2017-12-25 09:53:50 +0800
commitb567adb81e16e009ada73dfa2fbd5a0f9688d78f (patch)
treeb8213652949c0fc72bdded7206205d7618221c58
parent9cdda7baa0819d544987d8fc909abdac549b27aa (diff)
downloadedk2-b567adb81e16e009ada73dfa2fbd5a0f9688d78f.zip
edk2-b567adb81e16e009ada73dfa2fbd5a0f9688d78f.tar.gz
edk2-b567adb81e16e009ada73dfa2fbd5a0f9688d78f.tar.bz2
BaseTools/C/Common: Remove redundant type cast
Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--BaseTools/Source/C/Common/BasePeCoff.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/BaseTools/Source/C/Common/BasePeCoff.c b/BaseTools/Source/C/Common/BasePeCoff.c
index 692663d..fb7ce25 100644
--- a/BaseTools/Source/C/Common/BasePeCoff.c
+++ b/BaseTools/Source/C/Common/BasePeCoff.c
@@ -2,7 +2,7 @@
Functions to get info and load PE/COFF image.
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1080,12 +1080,10 @@ Returns:
PeHdr->Pe32.OptionalHeader.AddressOfEntryPoint
);
} else {
- ImageContext->EntryPoint = (PHYSICAL_ADDRESS) (
- (UINTN)ImageContext->ImageAddress +
- (UINTN)TeHdr->AddressOfEntryPoint +
- (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -
- (UINTN) TeHdr->StrippedSize
- );
+ ImageContext->EntryPoint = (UINTN)ImageContext->ImageAddress +
+ (UINTN)TeHdr->AddressOfEntryPoint +
+ (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -
+ (UINTN) TeHdr->StrippedSize;
}
//