Remove ASSERT check for SetVariable in FirmwarePerformanceDataTableDxe
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming <liming.gao@intel.com> Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15330 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
		@@ -5,7 +5,7 @@
 | 
				
			|||||||
  for Firmware Basic Boot Performance Record and other boot performance records, 
 | 
					  for Firmware Basic Boot Performance Record and other boot performance records, 
 | 
				
			||||||
  and install FPDT to ACPI table.
 | 
					  and install FPDT to ACPI table.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>
 | 
					  Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
 | 
				
			||||||
  This program and the accompanying materials
 | 
					  This program and the accompanying materials
 | 
				
			||||||
  are licensed and made available under the terms and conditions of the BSD License
 | 
					  are licensed and made available under the terms and conditions of the BSD License
 | 
				
			||||||
  which accompanies this distribution.  The full text of the license may be found at
 | 
					  which accompanies this distribution.  The full text of the license may be found at
 | 
				
			||||||
@@ -488,15 +488,15 @@ InstallFirmwarePerformanceDataTable (
 | 
				
			|||||||
  mFirmwarePerformanceTableTemplate.S3PointerRecord.S3PerformanceTablePointer = (UINT64) (UINTN) mAcpiS3PerformanceTable;
 | 
					  mFirmwarePerformanceTableTemplate.S3PointerRecord.S3PerformanceTablePointer = (UINT64) (UINTN) mAcpiS3PerformanceTable;
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
  // Save Runtime Performance Table pointers to Variable.
 | 
					  // Save Runtime Performance Table pointers to Variable.
 | 
				
			||||||
 | 
					  // Don't check SetVariable return status. It doesn't impact FPDT table generation. 
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
  Status = gRT->SetVariable (
 | 
					  gRT->SetVariable (
 | 
				
			||||||
        EFI_FIRMWARE_PERFORMANCE_VARIABLE_NAME,
 | 
					        EFI_FIRMWARE_PERFORMANCE_VARIABLE_NAME,
 | 
				
			||||||
        &gEfiFirmwarePerformanceGuid,
 | 
					        &gEfiFirmwarePerformanceGuid,
 | 
				
			||||||
        EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,
 | 
					        EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,
 | 
				
			||||||
        sizeof (PerformanceVariable),
 | 
					        sizeof (PerformanceVariable),
 | 
				
			||||||
        &PerformanceVariable
 | 
					        &PerformanceVariable
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
  ASSERT_EFI_ERROR (Status);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
  // Publish Firmware Performance Data Table.
 | 
					  // Publish Firmware Performance Data Table.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user