]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/AcpiPlatform: Remove unused variables
authorGary Lin <glin@suse.com>
Fri, 29 Jul 2016 03:25:27 +0000 (11:25 +0800)
committerdavid wei <david.wei@intel.com>
Wed, 3 Aug 2016 03:02:16 +0000 (11:02 +0800)
Fix the following errors from gcc:

Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c: In function 'PlatformUpdateTables':
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c:236:63: warning: variable 'LocalApicCounter' set but not used [-Wunused-but-set-variable]
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c:214:64: warning: variable 'ProcessorLocalApicEntry' set but not used [-Wunused-but-set-variable]
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c:213:63: warning: variable 'BufferSize' set but not used [-Wunused-but-set-variable]

Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c: In function 'AcpiPlatformEntryPoint':
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c:797:33: warning: variable 'Data32' set but not used [-Wunused-but-set-variable]

Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatformHooks.c: In function ?PatchGv3SsdtTable?:
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatformHooks.c:243:31: error: variable ?Status? set but not used [-Werror=unused-but-set-variable]

Cc: David Wei <david.wei@intel.com>
Cc: "Wu, Hao A" <hao.a.wu@intel.com>
Cc: "Lu, ShifeiX A" <shifeix.a.lu@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/AcpiPlatform/AcpiPlatform.c
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatformHooks.c

index 8a883f2a098df6a2d50dc7efa252a52ca3debb0b..f533d742a4d37ff144e80fcd1c6293c0dde20ca4 100644 (file)
@@ -211,8 +211,6 @@ PlatformUpdateTables (
   EFI_MP_SERVICES_PROTOCOL                                    *MpService;\r
   UINTN                                                       MaximumNumberOfCPUs;\r
   UINTN                                                       NumberOfEnabledCPUs;\r
-  UINTN                                                       BufferSize;\r
-  ACPI_APIC_STRUCTURE_PTR                                     *ProcessorLocalApicEntry;\r
   UINTN                                                       BspIndex;\r
   EFI_ACPI_1_0_ASF_DESCRIPTION_TABLE                          *AsfEntry;\r
   EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER            *HpetTbl;\r
@@ -234,7 +232,6 @@ PlatformUpdateTables (
   UINT16                                                      NumberOfHpets;\r
   UINT16                                                      HpetCapIdValue;\r
   UINT32                                                      HpetBlockID;\r
-  UINTN                                                       LocalApicCounter;\r
   EFI_PROCESSOR_INFORMATION                                   ProcessorInfoBuffer;\r
   UINT8                                                       TempVal;\r
   EFI_ACPI_3_0_IO_APIC_STRUCTURE                              *IOApicType;\r
@@ -244,9 +241,7 @@ PlatformUpdateTables (
   CurrPtr                 = NULL;\r
   EndPtr                  = NULL;\r
   ApicPtr                 = NULL;\r
-  LocalApicCounter        = 0;\r
   CurrProcessor           = 0;\r
-  ProcessorLocalApicEntry = NULL;\r
 \r
 \r
  if (Table->Signature != EFI_ACPI_1_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE) {\r
@@ -374,7 +369,6 @@ PlatformUpdateTables (
               ApicPtr->AcpiLocalApic.AcpiProcessorId = (UINT8)MaximumNumberOfCPUs;\r
             }\r
 \r
-            BufferSize                    = 0;\r
             ApicPtr->AcpiLocalApic.Flags  = 0;\r
 \r
             for (CurrProcessor = 0; CurrProcessor < MaximumNumberOfCPUs; CurrProcessor++) {\r
@@ -807,7 +801,6 @@ AcpiPlatformEntryPoint (
   EFI_MP_SERVICES_PROTOCOL      *MpService;\r
   UINTN                         MaximumNumberOfCPUs;\r
   UINTN                         NumberOfEnabledCPUs;\r
-  UINT32                        Data32;\r
   PCH_STEPPING                  pchStepping;\r
 \r
   mFirstNotify      = FALSE;\r
@@ -816,7 +809,6 @@ AcpiPlatformEntryPoint (
   Instance          = 0;\r
   CurrentTable      = NULL;\r
   TableHandle       = 0;\r
-  Data32            = 0;\r
 \r
   //\r
   // Update HOB variable for PCI resource information.\r
index 34896508081b0addbafed276279a75e81290ee0c..c89c07f07391ec9f608d2493503150665c679888 100644 (file)
@@ -232,7 +232,6 @@ PatchGv3SsdtTable (
   IN OUT   EFI_ACPI_DESCRIPTION_HEADER  *TableHeader\r
   )\r
 {\r
-  EFI_STATUS                  Status;\r
   UINT8                       *CurrPtr;\r
   UINT8                       *SsdtPointer;\r
   UINT32                      Signature;\r
@@ -328,7 +327,7 @@ PatchGv3SsdtTable (
         continue;\r
       }\r
 \r
-      Status      = EistProt->GetEistTable (EistProt, &EistInfo, (VOID **) &PssState);\r
+      EistProt->GetEistTable (EistProt, &EistInfo, (VOID **) &PssState);\r
 \r
       AdjustSize  = PssTable->NumEntries * sizeof (EFI_PSS_PACKAGE);\r
       AdjustSize -= EistInfo->NumStates * sizeof (EFI_PSS_PACKAGE);\r