diff mbox

[edk2,21/35] QuarkSocPkg: QNCSmmLib: remove set but unused variables

Message ID 1458815844-24793-22-git-send-email-lersek@redhat.com
State New
Headers show

Commit Message

Laszlo Ersek March 24, 2016, 10:37 a.m. UTC
This patch also removes a PcdGet16() call, but that should be harmless.

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/Library/QNCSmmLib/QNCSmmLib.inf | 1 -
 QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.c   | 4 +---
 2 files changed, 1 insertion(+), 4 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/Library/QNCSmmLib/QNCSmmLib.inf b/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.inf
index 00f80312c22e..c41ad14a10dd 100644
--- a/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.inf
+++ b/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.inf
@@ -44,7 +44,6 @@  [LibraryClasses]
   QNCAccessLib
 
 [Pcd]
-  gEfiQuarkNcSocIdTokenSpaceGuid.PcdPm1blkIoBaseAddress
   gEfiQuarkNcSocIdTokenSpaceGuid.PcdGpe0blkIoBaseAddress
   gEfiQuarkNcSocIdTokenSpaceGuid.PcdSmmDataPort
   gEfiQuarkNcSocIdTokenSpaceGuid.PcdSmmActivationPort
diff --git a/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.c b/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.c
index 6ddc09973a6a..075d45fa7fa8 100644
--- a/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.c
+++ b/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/QNCSmmLib.c
@@ -38,14 +38,12 @@  InternalTriggerSmi (
   IN UINT8                     Data
   )
 {
-  UINT16        PM1BLK_Base;
   UINT16        GPE0BLK_Base;
   UINT32        NewValue;
 
   //
-  // Get PM1BLK_Base & GPE0BLK_Base
+  // Get GPE0BLK_Base
   //
-  PM1BLK_Base = PcdGet16 (PcdPm1blkIoBaseAddress);
   GPE0BLK_Base = (UINT16)(LpcPciCfg32 (R_QNC_LPC_GPE0BLK) & 0xFFFF);