]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/MtrrLib: remove unused but set variable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 24 Mar 2016 06:28:19 +0000 (07:28 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 25 Mar 2016 09:52:54 +0000 (10:52 +0100)
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>
UefiCpuPkg/Library/MtrrLib/MtrrLib.c

index 199e165d466a262204d24540e11d8cacd2f3cab7..5ed9f226e4d199f91712e868dd9b4cd8c1dab6aa 100644 (file)
@@ -459,11 +459,9 @@ ProgramFixedMtrr (
 {\r
   UINT32  MsrNum;\r
   UINT32  ByteShift;\r
-  UINT64  TempQword;\r
   UINT64  OrMask;\r
   UINT64  ClearMask;\r
 \r
-  TempQword = 0;\r
   OrMask    = 0;\r
   ClearMask = 0;\r
 \r