]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/PpmPolicy: Remove the unused variable
authorGary Lin <glin@suse.com>
Fri, 29 Jul 2016 03:25:38 +0000 (11:25 +0800)
committerdavid wei <david.wei@intel.com>
Wed, 3 Aug 2016 03:08:34 +0000 (11:08 +0800)
Fix the following error from gcc:

Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c: In function ?PpmPolicyEntry?:
Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c:50:29: error: variable ?MaxRatio? set but not used [-Werror=unused-but-set-variable]

Cc: David Wei <david.wei@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: David Wei <david.wei@intel.com>
Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c

index fb4e7fc87b92936a8d8da4bf479e42380a2d5493..ec0c0f5c1efc5ec10a39bdccea387de62c1f44e6 100644 (file)
@@ -46,7 +46,6 @@ PpmPolicyEntry(
   EFI_HANDLE                Handle;\r
   EFI_STATUS                Status;\r
   UINTN                     CpuCount;\r
-  UINT64                    MaxRatio;\r
   UINT8                     CPUMobileFeature;\r
 \r
   PCH_STEPPING              Stepping;\r
@@ -77,8 +76,6 @@ PpmPolicyEntry(
   // Store the CPUID for use by SETUP items.\r
   //\r
   AsmCpuid (EFI_CPUID_VERSION_INFO, &Cpuid01.RegEax, &Cpuid01.RegEbx, &Cpuid01.RegEcx, &Cpuid01.RegEdx);\r
-  MaxRatio = ((RShiftU64 (AsmReadMsr64(EFI_MSR_IA32_PLATFORM_ID), 8)) & 0x1F);\r
-\r
 \r
   mDxePlatformPpmPolicy.Revision                       = PPM_PLATFORM_POLICY_PROTOCOL_REVISION_4;\r
 \r