summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/Library
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-03-24 07:28:19 +0100
committerJeff Fan <jeff.fan@intel.com>2016-06-29 15:48:14 +0800
commit8bace168b2d619173eef5196ef49a2976f592626 (patch)
tree57468f7ac930757132a55a7eba304b191cc12aa6 /UefiCpuPkg/Library
parent2a7b8dc3701a01afc9bd90e136f5b3e4ad55d164 (diff)
downloadedk2-platforms-8bace168b2d619173eef5196ef49a2976f592626.tar.xz
UefiCpuPkg/MtrrLib: remove unused but set variable
Remove variable TempQWord that is declared, assigned but never referenced. This fixes a warning emitted by GCC when -Wunused-but-set-variable is in effect. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Cc: Jeff Fan <jeff.fan@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> (cherry picked from commit 16e93125b506e30e53f63be4af0255a3afb0210b)
Diffstat (limited to 'UefiCpuPkg/Library')
-rw-r--r--UefiCpuPkg/Library/MtrrLib/MtrrLib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c
index 199e165d46..5ed9f226e4 100644
--- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c
+++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c
@@ -459,11 +459,9 @@ ProgramFixedMtrr (
{
UINT32 MsrNum;
UINT32 ByteShift;
- UINT64 TempQword;
UINT64 OrMask;
UINT64 ClearMask;
- TempQword = 0;
OrMask = 0;
ClearMask = 0;