summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/DriverSampleDxe
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/DriverSampleDxe
parent310580cf8a9656e3990b7d58fafdc0ce62b9b61f (diff)
downloadedk2-7538d53684792266c37e91f11a3ce2b7fb1e32d9.tar.gz
edk2-7538d53684792266c37e91f11a3ce2b7fb1e32d9.tar.bz2
edk2-7538d53684792266c37e91f11a3ce2b7fb1e32d9.zip
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/DriverSampleDxe')
-rw-r--r--MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
index b6621a93e2..37a592ce90 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
+++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
@@ -662,7 +662,6 @@ AppendAltCfgString (
)
{
EFI_STRING StringPtr;
- EFI_STRING TmpPtr;
UINTN Length;
UINT8 *TmpBuffer;
UINTN Offset;
@@ -683,11 +682,6 @@ AppendAltCfgString (
}
while (*StringPtr != 0 && StrnCmp (StringPtr, L"OFFSET=", StrLen (L"OFFSET=")) == 0) {
- //
- // Back up the header of one <BlockName>
- //
- TmpPtr = StringPtr;
-
StringPtr += StrLen (L"OFFSET=");
//
// Get Offset