diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2016-05-11 16:08:27 -0700 |
---|---|---|
committer | Michael Kinney <michael.d.kinney@intel.com> | 2016-05-13 11:34:32 -0700 |
commit | 0c5d4079789767ffabfdfe0d9767d9db348fa2c7 (patch) | |
tree | 5890eedab4aad6b6ec70fe9959f6036287f175a1 /QuarkPlatformPkg/Acpi | |
parent | fb308fdb98777503d1bf1442091a3d51cb404d2d (diff) | |
download | edk2-0c5d4079789767ffabfdfe0d9767d9db348fa2c7.tar.gz edk2-0c5d4079789767ffabfdfe0d9767d9db348fa2c7.tar.bz2 edk2-0c5d4079789767ffabfdfe0d9767d9db348fa2c7.zip |
QuarkPlatformPkg: Fix variable set but not used build errors
Fix variable set but not used errors detected by GCC 4.8.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'QuarkPlatformPkg/Acpi')
-rw-r--r-- | QuarkPlatformPkg/Acpi/DxeSmm/SmmPowerManagement/Ppm.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/QuarkPlatformPkg/Acpi/DxeSmm/SmmPowerManagement/Ppm.c b/QuarkPlatformPkg/Acpi/DxeSmm/SmmPowerManagement/Ppm.c index 8f5e6a324c..4fb9ca1c6a 100644 --- a/QuarkPlatformPkg/Acpi/DxeSmm/SmmPowerManagement/Ppm.c +++ b/QuarkPlatformPkg/Acpi/DxeSmm/SmmPowerManagement/Ppm.c @@ -2,7 +2,7 @@ Processor power management initialization code.
-Copyright (c) 2013-2015 Intel Corporation.
+Copyright (c) 2013-2016 Intel Corporation.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -79,7 +79,6 @@ PpmPatchFadtTable ( EFI_ACPI_TABLE_VERSION Version;
UINTN Index;
UINTN Handle;
- EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE *FadtPointer;
//
// Scan all the acpi tables to find FADT 2.0
@@ -106,9 +105,7 @@ PpmPatchFadtTable ( ASSERT (Table != NULL);
CopyMem (Table, CurrentTable, CurrentTable->Length);
- FadtPointer = (EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE*) Table;
-
- //
+ //
// Update the ACPI table and recalculate checksum
//
Status = mAcpiTable->UninstallAcpiTable (mAcpiTable, Handle);
@@ -322,7 +319,6 @@ PpmLoadAndPatchPMTables ( UINTN TableHandle;
UINT32 FvStatus;
UINTN Size;
- EFI_ACPI_TABLE_VERSION Version;
Status = LocateSupportProtocol (&gEfiFirmwareVolume2ProtocolGuid, (VOID**)&FwVol, 1);
if (EFI_ERROR (Status)) {
@@ -348,14 +344,6 @@ PpmLoadAndPatchPMTables ( );
if (!EFI_ERROR(Status)) {
- Version = EFI_ACPI_TABLE_VERSION_1_0B | EFI_ACPI_TABLE_VERSION_2_0 | EFI_ACPI_TABLE_VERSION_3_0;
-
- if(((EFI_ACPI_DESCRIPTION_HEADER*) CurrentTable)->OemTableId == SIGNATURE_64 ('C', 'p', 'u', '0', 'I', 's', 't', 0)) {
- Version = EFI_ACPI_TABLE_VERSION_NONE;
- } else if(((EFI_ACPI_DESCRIPTION_HEADER*) CurrentTable)->OemTableId == SIGNATURE_64 ('C', 'p', 'u', '1', 'I', 's', 't', 0)) {
- Version = EFI_ACPI_TABLE_VERSION_NONE;
- }
-
SsdtTableUpdate ((EFI_ACPI_DESCRIPTION_HEADER *) CurrentTable);
//
|