summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Acpi/AcpiTableDxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 15:58:05 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 15:58:05 +0000
commit7538d53684792266c37e91f11a3ce2b7fb1e32d9 (patch)
tree1a82491c7ef95953283429136bde44ed621ed944 /MdeModulePkg/Universal/Acpi/AcpiTableDxe
parent310580cf8a9656e3990b7d58fafdc0ce62b9b61f (diff)
downloadedk2-platforms-7538d53684792266c37e91f11a3ce2b7fb1e32d9.tar.xz
MdeModulePkg: Remove variables that are set, but not used
GCC 4.6 generates a warning when a variable is set, but never used. Signed-off-by: jljusten Reviewed-by: lgao4 Reviewed-by: erictian Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12617 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Acpi/AcpiTableDxe')
-rw-r--r--MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlString.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlString.c b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlString.c
index fe2c7613e5..9f47b48835 100644
--- a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlString.c
+++ b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlString.c
@@ -1,7 +1,7 @@
/** @file
ACPI Sdt Protocol Driver
- Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>
+ Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -117,9 +117,7 @@ AmlGetNameStringSize (
UINTN SegCount;
UINTN Length;
UINTN Index;
- UINT8 *Name;
- Name = Buffer;
Length = 0;
//
@@ -493,9 +491,7 @@ AmlPrintNameString (
{
UINT8 SegCount;
UINT8 Index;
- UINT8 *Name;
-
- Name = Buffer;
+
if (*Buffer == AML_ROOT_CHAR) {
//
// RootChar