[edk2] [Patch][edk2-platforms/devel-MinnowBoardMax-UDK2017] Fix GCC build error.

zwei4 posted 1 patch 5 years, 10 months ago
Failed in applying to current master (apply log)
Vlv2TbltDevicePkg/Library/PchPlatformLib/PchPlatformLibrary.c | 6 ------
1 file changed, 6 deletions(-)
[edk2] [Patch][edk2-platforms/devel-MinnowBoardMax-UDK2017] Fix GCC build error.
Posted by zwei4 5 years, 10 months ago
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
---
 Vlv2TbltDevicePkg/Library/PchPlatformLib/PchPlatformLibrary.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/Vlv2TbltDevicePkg/Library/PchPlatformLib/PchPlatformLibrary.c b/Vlv2TbltDevicePkg/Library/PchPlatformLib/PchPlatformLibrary.c
index 8c1dc152b8..58c0e63f1e 100644
--- a/Vlv2TbltDevicePkg/Library/PchPlatformLib/PchPlatformLibrary.c
+++ b/Vlv2TbltDevicePkg/Library/PchPlatformLib/PchPlatformLibrary.c
@@ -267,9 +267,7 @@ VOID
   UINT32                           GpioValue;
   UINT32                           SSUSOffset = 0x2000;
   UINT32                           IoBase = 0;
-  UINT32                           MmioConf0 = 0;
   UINT32                           MmioPadval = 0;
-  UINT32                           PConf0Offset = 0x210; //GPIO_S5_1 pad_conf0 register offset
   UINT32                           PValueOffset = 0x218; //GPIO_S5_1 pad_value register offset
   
   PciD31F0RegBase = MmPciAddress (0,
@@ -283,7 +281,6 @@ VOID
   //
   // 0xFED0E1E0/0xFED0E0A8 is pad_Conf/pad_val register address of GPIO_S5_17
   //
-  MmioConf0 = IoBase + SSUSOffset + PConf0Offset;
   MmioPadval = IoBase + SSUSOffset + PValueOffset; 
 
   GpioValue = MmioRead32 (MmioPadval);
@@ -312,9 +309,7 @@ VOID
   UINT32                           GpioValue;
   UINT32                           SSUSOffset = 0x2000;
   UINT32                           IoBase = 0;
-  UINT32                           MmioConf0 = 0;
   UINT32                           MmioPadval = 0;
-  UINT32                           PConf0Offset = 0x1E0; //GPIO_S5_2 pad_conf0 register offset
   UINT32                           PValueOffset = 0x1E8; //GPIO_S5_2 pad_value register offset
   
   PciD31F0RegBase = MmPciAddress (0,
@@ -328,7 +323,6 @@ VOID
   //
   // 0xFED0E1E0/0xFED0E0A8 is pad_Conf/pad_val register address of GPIO_S5_17
   //
-  MmioConf0 = IoBase + SSUSOffset + PConf0Offset;
   MmioPadval = IoBase + SSUSOffset + PValueOffset; 
 
   GpioValue = MmioRead32 (MmioPadval);
-- 
2.14.1.windows.1

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