diff mbox

[edk2,23/35] QuarkSocPkg: QNCInit/Dxe: remove set but unused variables

Message ID 1458815844-24793-24-git-send-email-lersek@redhat.com
State Accepted
Commit 498abdab57b007220094c664716f3e9b9fa4c623
Headers show

Commit Message

Laszlo Ersek March 24, 2016, 10:37 a.m. UTC
This patch also eliminates a PCI config space access, but that should be
fine.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Kelly Steele <kelly.steele@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 QuarkSocPkg/QuarkNorthCluster/QNCInit/Dxe/QNCInit.c | 3 ---
 1 file changed, 3 deletions(-)

-- 
1.8.3.1


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/QuarkSocPkg/QuarkNorthCluster/QNCInit/Dxe/QNCInit.c b/QuarkSocPkg/QuarkNorthCluster/QNCInit/Dxe/QNCInit.c
index c434067f726a..d3c82be4defa 100644
--- a/QuarkSocPkg/QuarkNorthCluster/QNCInit/Dxe/QNCInit.c
+++ b/QuarkSocPkg/QuarkNorthCluster/QNCInit/Dxe/QNCInit.c
@@ -509,11 +509,8 @@  EFI_STATUS
 InitializeQNCPolicy (
   )
 {
-  UINT8        RevisionID;
   UINT32       PciD31F0RegBase;  // LPC
 
-  RevisionID = LpcPciCfg8(R_QNC_LPC_REV_ID);
-
   PciD31F0RegBase = PciDeviceMmBase (PCI_BUS_NUMBER_QNC, PCI_DEVICE_NUMBER_QNC_LPC, PCI_FUNCTION_NUMBER_QNC_LPC);
 
   //