mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-11-04 01:03:23 +00:00 
			
		
		
		
	Vlv2TbltDevicePkg/PpmPolicy: Remove the unused variable
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>
This commit is contained in:
		
							parent
							
								
									55ef35d21e
								
							
						
					
					
						commit
						4884e81b5d
					
				@ -46,7 +46,6 @@ PpmPolicyEntry(
 | 
			
		||||
  EFI_HANDLE                Handle;
 | 
			
		||||
  EFI_STATUS                Status;
 | 
			
		||||
  UINTN                     CpuCount;
 | 
			
		||||
  UINT64                    MaxRatio;
 | 
			
		||||
  UINT8                     CPUMobileFeature;
 | 
			
		||||
 | 
			
		||||
  PCH_STEPPING              Stepping;
 | 
			
		||||
@ -77,8 +76,6 @@ PpmPolicyEntry(
 | 
			
		||||
  // Store the CPUID for use by SETUP items.
 | 
			
		||||
  //
 | 
			
		||||
  AsmCpuid (EFI_CPUID_VERSION_INFO, &Cpuid01.RegEax, &Cpuid01.RegEbx, &Cpuid01.RegEcx, &Cpuid01.RegEdx);
 | 
			
		||||
  MaxRatio = ((RShiftU64 (AsmReadMsr64(EFI_MSR_IA32_PLATFORM_ID), 8)) & 0x1F);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  mDxePlatformPpmPolicy.Revision                       = PPM_PLATFORM_POLICY_PROTOCOL_REVISION_4;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user