summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@hpe.com>2020-07-25 10:34:51 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-07-29 03:23:20 +0000
commite848b58d7c85293cd4121287abcea2d22a4f0620 (patch)
treed48e48b0fd3e921a090b80025194685bc356334f /BaseTools/Source
parent744ad444e5306ef68edbe899b5f5dc87e82c146b (diff)
downloadedk2-e848b58d7c85293cd4121287abcea2d22a4f0620.tar.gz
edk2-e848b58d7c85293cd4121287abcea2d22a4f0620.tar.bz2
edk2-e848b58d7c85293cd4121287abcea2d22a4f0620.zip
BaseTools/PeCoffLoaderEx: Remove the unused local variable
BZ:2864 GCC build fails due to variable self assignment. This local variable is not used at any where, we can just remove it. Signed-off-by: Abner Chang <abner.chang@hpe.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Daniel Schaefer <daniel.schaefer@hpe.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source')
-rw-r--r--BaseTools/Source/C/Common/PeCoffLoaderEx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/BaseTools/Source/C/Common/PeCoffLoaderEx.c b/BaseTools/Source/C/Common/PeCoffLoaderEx.c
index 588b3a2f84..799f282970 100644
--- a/BaseTools/Source/C/Common/PeCoffLoaderEx.c
+++ b/BaseTools/Source/C/Common/PeCoffLoaderEx.c
@@ -127,10 +127,7 @@ PeCoffLoaderRelocateRiscVImage (
{
UINT32 Value;
UINT32 Value2;
- UINT32 OrgValue;
- OrgValue = *(UINT32 *) Fixup;
- OrgValue = OrgValue;
switch ((*Reloc) >> 12) {
case EFI_IMAGE_REL_BASED_RISCV_HI20:
RiscVHi20Fixup = (UINT32 *) Fixup;