[PATCH v2 16/19] Vlv2TbltDevicePkg/Wpce791: Remove the unused variable


Gary Lin
 

Fix the following error from gcc:

Vlv2TbltDevicePkg/Wpce791/LpcDriver.c: In function ‘LpcDriverStart’:
Vlv2TbltDevicePkg/Wpce791/LpcDriver.c:239:27: error: variable ‘LpcDev’ set but not used [-Werror=unused-but-set-variable]

Cc: David Wei <david.wei@...>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@...>
---
Vlv2TbltDevicePkg/Wpce791/LpcDriver.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/Vlv2TbltDevicePkg/Wpce791/LpcDriver.c b/Vlv2TbltDevicePkg/Wpce791/LpcDriver.c
index be99b4c..5b0c25c 100644
--- a/Vlv2TbltDevicePkg/Wpce791/LpcDriver.c
+++ b/Vlv2TbltDevicePkg/Wpce791/LpcDriver.c
@@ -227,10 +227,6 @@ LpcDriverStart (
{
EFI_STATUS Status;
EFI_PCI_IO_PROTOCOL *PciIo;
- LPC_DEV *LpcDev;
-
-
- LpcDev = NULL;

//
// Get Pci IO
--
2.9.2