summaryrefslogtreecommitdiffstats
path: root/QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-05-11 16:08:27 -0700
committerMichael Kinney <michael.d.kinney@intel.com>2016-05-13 11:34:32 -0700
commit0c5d4079789767ffabfdfe0d9767d9db348fa2c7 (patch)
tree5890eedab4aad6b6ec70fe9959f6036287f175a1 /QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c
parentfb308fdb98777503d1bf1442091a3d51cb404d2d (diff)
downloadedk2-0c5d4079789767ffabfdfe0d9767d9db348fa2c7.tar.gz
edk2-0c5d4079789767ffabfdfe0d9767d9db348fa2c7.tar.bz2
edk2-0c5d4079789767ffabfdfe0d9767d9db348fa2c7.zip
QuarkPlatformPkg: Fix variable set but not used build errors
Fix variable set but not used errors detected by GCC 4.8. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c')
-rw-r--r--QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c b/QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c
index 6cfe71028e..dbb5512f38 100644
--- a/QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c
+++ b/QuarkPlatformPkg/Platform/SpiFvbServices/FwBlockService.c
@@ -1,6 +1,6 @@
/** @file
-Copyright (c) 2013-2015 Intel Corporation.
+Copyright (c) 2013-2016 Intel Corporation.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -590,9 +590,6 @@ Returns:
--*/
{
EFI_STATUS Status;
- UINTN NumBytes;
-
- NumBytes = LbaLength;
WriteAddress -= (PcdGet32 (PcdFlashAreaBaseAddress));
if (mInSmmMode == 0 ) { // !(EfiInManagementInterrupt ())) {
@@ -1638,7 +1635,6 @@ Returns:
VOID *FirmwareVolumeHobList;
UINT32 BufferSize;
EFI_FV_BLOCK_MAP_ENTRY *PtrBlockMapEntry;
- UINTN LbaAddress;
BOOLEAN WriteEnabled;
BOOLEAN WriteLocked;
EFI_HANDLE FwbHandle;
@@ -1882,7 +1878,6 @@ Returns:
FwhInstance->WriteEnabled = WriteEnabled;
EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);
- LbaAddress = (UINTN) FwhInstance->FvWriteBase[0];
NumOfBlocks = 0;
WriteLocked = FALSE;