Vlv2TbltDevicePkg/PlatformDxe: Remove the unused variables

Fix the following errors from gcc:

Vlv2TbltDevicePkg/PlatformDxe/Platform.c: In function ?InitPciDevPME?:
Vlv2TbltDevicePkg/PlatformDxe/Platform.c:516:26: error: variable ?Status? set but not used [-Werror=unused-but-set-variable]

Vlv2TbltDevicePkg/PlatformDxe/Platform.c: In function ?InitThermalZone?:
Vlv2TbltDevicePkg/PlatformDxe/Platform.c:575:26: error: variable ?Status? set but not used [-Werror=unused-but-set-variable]

Vlv2TbltDevicePkg/PlatformDxe/IchRegTable.c: In function ?InitializeSubsystemIds?:
Vlv2TbltDevicePkg/PlatformDxe/IchRegTable.c:111:10: error: variable ?SubsystemAudioVidDid? set but not used [-Werror=unused-but-set-variable]

Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c: In function ?InitBadBars?:
Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c:115:40: error: variable ?PciIoDevice? set but not used [-Werror=unused-but-set-variable]
Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c:114:39: error: variable ?Status? set but not used [-Werror=unused-but-set-variable]

Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c: In function ?ProgramPciLatency?:
Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c:320:39: error: variable ?Status? 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>
diff --git a/Vlv2TbltDevicePkg/PlatformDxe/IchRegTable.c b/Vlv2TbltDevicePkg/PlatformDxe/IchRegTable.c
index 06d325c..4569ce5 100644
--- a/Vlv2TbltDevicePkg/PlatformDxe/IchRegTable.c
+++ b/Vlv2TbltDevicePkg/PlatformDxe/IchRegTable.c
Binary files differ
diff --git a/Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c b/Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c
index 16aaa18..8c2bfff 100644
--- a/Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c
+++ b/Vlv2TbltDevicePkg/PlatformDxe/PciDevice.c
Binary files differ
diff --git a/Vlv2TbltDevicePkg/PlatformDxe/Platform.c b/Vlv2TbltDevicePkg/PlatformDxe/Platform.c
index 645b865..904a9a5 100644
--- a/Vlv2TbltDevicePkg/PlatformDxe/Platform.c
+++ b/Vlv2TbltDevicePkg/PlatformDxe/Platform.c
@@ -513,16 +513,15 @@
   )

 {

   UINTN                  VarSize;

-  EFI_STATUS             Status;

 

   VarSize = sizeof(SYSTEM_CONFIGURATION);

-  Status = gRT->GetVariable(

-                  NORMAL_SETUP_NAME,

-                  &gEfiNormalSetupGuid,

-                  NULL,

-                  &VarSize,

-                  &mSystemConfiguration

-                  );

+  gRT->GetVariable(

+         NORMAL_SETUP_NAME,

+         &gEfiNormalSetupGuid,

+         NULL,

+         &VarSize,

+         &mSystemConfiguration

+         );

 

   //

   //Program HDA PME_EN

@@ -572,21 +571,20 @@
   )

 {

   UINTN                  VarSize;

-  EFI_STATUS             Status;

   EFI_GLOBAL_NVS_AREA_PROTOCOL       *GlobalNvsArea;

   VarSize = sizeof(SYSTEM_CONFIGURATION);

-  Status = gRT->GetVariable(

-                  NORMAL_SETUP_NAME,

-                  &gEfiNormalSetupGuid,

-                  NULL,

-                  &VarSize,

-                  &mSystemConfiguration

-                  );

-  Status = gBS->LocateProtocol (

-                  &gEfiGlobalNvsAreaProtocolGuid,

-                  NULL,

-                  (void **)&GlobalNvsArea

-                  );

+  gRT->GetVariable(

+         NORMAL_SETUP_NAME,

+         &gEfiNormalSetupGuid,

+         NULL,

+         &VarSize,

+         &mSystemConfiguration

+         );

+  gBS->LocateProtocol (

+         &gEfiGlobalNvsAreaProtocolGuid,

+         NULL,

+         (void **)&GlobalNvsArea

+         );

   GlobalNvsArea->Area->CriticalThermalTripPoint = mSystemConfiguration.CriticalThermalTripPoint;

   GlobalNvsArea->Area->PassiveThermalTripPoint = mSystemConfiguration.PassiveThermalTripPoint;

 }